This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
v18.0.0
MAJOR BREAKING CHANGES
EditingController
requires an instance ofStylesProcessor
in its constructor.DataController
requires an instance ofStylesProcessor
in its constructor.DomConverter
,HtmlDataProcessor
andXmlDataProcessor
require an instance of the view document in their constructors.- The
View
class requires an instance ofStylesProcessor
as its first argument. - The
createViewElementFromHighlightDescriptor()
function that is exported bysrc/conversion/downcasthelpers.js
file requires an instance of the view document as its first argument. - Method
view.Document#addStyleProcessorRules()
has been moved to theDataController
class. - The
#document
getter was removed from model nodes. Only the root element holds the reference to the model document. For attached nodes, usenode.root.document
to access it.
MINOR BREAKING CHANGES
DataController
does not accept the data processor instance any more.
Features
- Implemented the model and view
Range#getContainedElement()
methods. Closes ckeditor/ckeditor5#6364. (8fb1efa)
Bug fixes
- Fixed renderer bug causing editor crash in a range of scenarios involving reusing DOM elements. Closes ckeditor/ckeditor5#6092. (67884da)
Other changes
DataController
will now use a single instance of the view document for all its operations (DataController#viewDocument
). Closes ckeditor/ckeditor5#6381. (851bac6)Document#version
is no longer read-only. (968b193)StylesProcessor
rules will not be stored in a singleton, which made them shared between editor instances. In order to allow binding a styles processor instance to a specific view document, we had to replace a dynamic#document
property in view nodes with a static one, set upon node creation. Closes ckeditor/ckeditor5#6091. (0e2f02e)- Introduced support for multi-range selections. Closes ckeditor/ckeditor5#6116. (ffce577)