Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Removed unused ClickObserver from ImageToolbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkups committed Jan 2, 2017
1 parent cd305e3 commit 7a2b3a0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/imagetoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Plugin from '../core/plugin.js';
import ToolbarView from '../ui/toolbar/toolbarview.js';
import BalloonPanelView from '../ui/balloonpanel/balloonpanelview.js';
import Template from '../ui/template.js';
import ClickObserver from 'ckeditor5/engine/view/observer/clickobserver.js';
import { isImageWidget } from './utils.js';
import throttle from '../utils/lib/lodash/throttle.js';
import global from '../utils/dom/global.js';
Expand Down Expand Up @@ -96,8 +95,6 @@ export default class ImageToolbar extends Plugin {
}
} );

editingView.addObserver( ClickObserver );

// Check if the toolbar should be displayed each time view is rendered.
editor.listenTo( editingView, 'render', () => {
const selectedElement = editingView.selection.getSelectedElement();
Expand Down

0 comments on commit 7a2b3a0

Please sign in to comment.