Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

v18.0.0

Compare
Choose a tag to compare
@mlewand mlewand released this 19 Mar 13:53
· 70 commits to master since this release

MAJOR BREAKING CHANGES

  • EditingController requires an instance of StylesProcessor in its constructor.
  • DataController requires an instance of StylesProcessor in its constructor.
  • DomConverter, HtmlDataProcessor and XmlDataProcessor require an instance of the view document in their constructors.
  • The View class requires an instance of StylesProcessor as its first argument.
  • The createViewElementFromHighlightDescriptor() function that is exported by src/conversion/downcasthelpers.js file requires an instance of the view document as its first argument.
  • Method view.Document#addStyleProcessorRules() has been moved to the DataController class.
  • The #document getter was removed from model nodes. Only the root element holds the reference to the model document. For attached nodes, use node.root.document to access it.

MINOR BREAKING CHANGES

  • DataController does not accept the data processor instance any more.

Features

Bug fixes

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)