From c2ec930575a0e9d149b2c7ef655debd7dabf9d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magdalena=20Chrze=C5=9Bcian?= Date: Mon, 4 Jan 2021 18:07:21 +0100 Subject: [PATCH] Widget required in html-embed plugin. --- packages/ckeditor5-html-embed/src/htmlembed.js | 3 ++- packages/ckeditor5-html-embed/tests/htmlembed.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/ckeditor5-html-embed/src/htmlembed.js b/packages/ckeditor5-html-embed/src/htmlembed.js index 21667e39fd2..5fb53953180 100644 --- a/packages/ckeditor5-html-embed/src/htmlembed.js +++ b/packages/ckeditor5-html-embed/src/htmlembed.js @@ -10,6 +10,7 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import HtmlEmbedEditing from './htmlembedediting'; import HtmlEmbedUI from './htmlembedui'; +import Widget from '@ckeditor/ckeditor5-widget/src/widget'; /** * The HTML embed feature. @@ -25,7 +26,7 @@ export default class HtmlEmbed extends Plugin { * @inheritDoc */ static get requires() { - return [ HtmlEmbedEditing, HtmlEmbedUI ]; + return [ HtmlEmbedEditing, HtmlEmbedUI, Widget ]; } /** diff --git a/packages/ckeditor5-html-embed/tests/htmlembed.js b/packages/ckeditor5-html-embed/tests/htmlembed.js index 291e79826a3..e5484de28f3 100644 --- a/packages/ckeditor5-html-embed/tests/htmlembed.js +++ b/packages/ckeditor5-html-embed/tests/htmlembed.js @@ -6,10 +6,11 @@ import HtmlEmbed from '../src/htmlembed'; import HtmlEmbedUI from '../src/htmlembedui'; import HtmlEmbedEditing from '../src/htmlembedediting'; +import Widget from '@ckeditor/ckeditor5-widget/src/widget'; describe( 'HtmlEmbed', () => { - it( 'should require HtmlEmbedEditing and HtmlEmbedUI', () => { - expect( HtmlEmbed.requires ).to.deep.equal( [ HtmlEmbedEditing, HtmlEmbedUI ] ); + it( 'should require HtmlEmbedEditing, HtmlEmbedUI and Widget', () => { + expect( HtmlEmbed.requires ).to.deep.equal( [ HtmlEmbedEditing, HtmlEmbedUI, Widget ] ); } ); it( 'should be named', () => {