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

Commit

Permalink
Other: Loosen a dependency of a clipboard plugin in the paste from Of…
Browse files Browse the repository at this point in the history
…fice plugin so that it can be overridden. Closes #56.
  • Loading branch information
mlewand authored May 13, 2019
2 parents e7c8a54 + 576d23a commit 561f22b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pastefromoffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';

import { parseHtml } from './filters/parse';
import { transformListItemLikeElementsIntoLists } from './filters/list';
Expand Down Expand Up @@ -38,7 +37,7 @@ export default class PasteFromOffice extends Plugin {
init() {
const editor = this.editor;

this.listenTo( editor.plugins.get( Clipboard ), 'inputTransformation', ( evt, data ) => {
this.listenTo( editor.plugins.get( 'Clipboard' ), 'inputTransformation', ( evt, data ) => {
const html = data.dataTransfer.getData( 'text/html' );

if ( data.pasteFromOfficeProcessed !== true && isWordInput( html ) ) {
Expand Down

0 comments on commit 561f22b

Please sign in to comment.