浏览代码

Docs: Fixed docs in the BalloonToolbar plugin.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
48c70675f9

+ 2 - 2
packages/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js

@@ -52,8 +52,8 @@ export default class BalloonToolbar extends Plugin {
 		this.toolbarView = this._createToolbarView();
 
 		/**
-		 * Tracks focus of editable element and {@link #toolbarView}.
-		 * When both are not focused then toolbar should hide.
+		 * Tracks the focus of the {@link module:ui/editableui/editableuiview~EditableUIView#editableElement}
+		 * and the {@link #toolbarView}. When both are blurred then the toolbar should hide.
 		 *
 		 * @readonly
 		 * @type {module:utils:focustracker~FocusTracker}

+ 4 - 4
packages/ckeditor5-ui/tests/toolbar/balloon/balloontoolbar.js

@@ -149,7 +149,7 @@ describe( 'BalloonToolbar', () => {
 			expect( balloonToolbar.focusTracker ).to.instanceof( FocusTracker );
 		} );
 
-		it( 'it should track focus of #editableElement', () => {
+		it( 'it should track the focus of the #editableElement', () => {
 			expect( balloonToolbar.focusTracker.isFocused ).to.false;
 
 			editor.ui.view.editableElement.dispatchEvent( new Event( 'focus' ) );
@@ -157,7 +157,7 @@ describe( 'BalloonToolbar', () => {
 			expect( balloonToolbar.focusTracker.isFocused ).to.true;
 		} );
 
-		it( 'it should track focus of #toolbarView.element', () => {
+		it( 'it should track the focus of the toolbarView#element', () => {
 			expect( balloonToolbar.focusTracker.isFocused ).to.false;
 
 			balloonToolbar.toolbarView.element.dispatchEvent( new Event( 'focus' ) );
@@ -320,7 +320,7 @@ describe( 'BalloonToolbar', () => {
 			sinon.assert.calledOnce( balloonAddSpy );
 		} );
 
-		it( 'should not add #toolbarView to the #_balloon when the selection is collapsed', () => {
+		it( 'should not add the #toolbarView to the #_balloon when the selection is collapsed', () => {
 			setData( model, '<paragraph>b[]ar</paragraph>' );
 
 			balloonToolbar.show();
@@ -431,7 +431,7 @@ describe( 'BalloonToolbar', () => {
 			sinon.assert.notCalled( hidePanelSpy );
 		} );
 
-		it( 'should not show when selection stops changing when editable is blurred', () => {
+		it( 'should not show when the selection stops changing when the editable is blurred', () => {
 			sinon.assert.notCalled( showPanelSpy );
 			sinon.assert.notCalled( hidePanelSpy );