API extension and improvements for editor-inline #5308
Labels
package:ui
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
A follow-up of https://github.com/ckeditor/ckeditor5-editor-inline/issues/1.
Some changes are required for editor-inline to work properly:
View.destroy()
should not callView#element.remove()
. The inline editor is given an existing element in DOM and it definitely should not nuke it. Besides, it turned out thatView
removing its#element
from DOM ondestroy()
is doing a job ofViewCollection
; it's obsolete.Template.apply()
should preserve original values of attributes. The inline editor should not destroy existing classes and so on, it's only borrowing the element for its lifetime and should be only concerned with own classes.Template.revert()
to clean–up after 2. and revert the element to the same state beforeEditor.create()
.The text was updated successfully, but these errors were encountered: