|
|
|
@ -6,8 +6,7 @@ export default class CutToNotePlugin extends Plugin {
|
|
|
|
private htmlDataProcessor!: HtmlDataProcessor;
|
|
|
|
private htmlDataProcessor!: HtmlDataProcessor;
|
|
|
|
|
|
|
|
|
|
|
|
init() {
|
|
|
|
init() {
|
|
|
|
// @ts-ignore Not sure why we need to pass a document.
|
|
|
|
this.htmlDataProcessor = new HtmlDataProcessor(this.editor.editing.view.document);
|
|
|
|
this.htmlDataProcessor = new HtmlDataProcessor();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.editor.ui.componentFactory.add( 'cutToNote', locale => {
|
|
|
|
this.editor.ui.componentFactory.add( 'cutToNote', locale => {
|
|
|
|
const view = new ButtonView( locale );
|
|
|
|
const view = new ButtonView( locale );
|
|
|
|
|