Browse Source

Aligned code with engine changes.

Oskar Wróbel 8 years ago
parent
commit
7b1ea497b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-ui/src/toolbar/contextual/contextualtoolbar.js

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/contextual/contextualtoolbar.js

@@ -128,7 +128,7 @@ export default class ContextualToolbar extends Plugin {
 	 * @private
 	 */
 	_handleSelectionChange() {
-		const selection = this.editor.document.selection;
+		const selection = this.editor.model.document.selection;
 		const editingView = this.editor.editing.view;
 
 		this.listenTo( selection, 'change:range', ( evt, data ) => {