You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we agreed in the past that we don't reference (UI) View#element in constructors but in init(). So it's not a big deal that CTE works that way but as in https://github.com/ckeditor/ckeditor5-ui/issues/424 we have to remember about that when developing new plugins.
In the
ClassicTestEditor
editableElement
is created in the class constructor, so it is available before the plugins initialization https://github.com/ckeditor/ckeditor5-core/blob/eb43b632faa036041e58c917204819955beec6e6/tests/_utils/classictesteditor.js#L41In the
ClassicEditor
editableElement
is created inClassicEditorUI#init()
that is after plugins initialization.What's the difference?
When you use
editableElement
in thePlugin#constructor
orPlugin#init
thenClassicEditor
will throw butClassicTestEditor
won't.This is an example, all unit tests of
BalloonToolbar
are green, but MT throws: https://github.com/ckeditor/ckeditor5-ui/issues/424The text was updated successfully, but these errors were encountered: