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

v1.0.0-beta.2

Compare
Choose a tag to compare
@pomek pomek released this 10 Apr 09:21
· 1781 commits to master since this release

Features

  • Introduced writer#updateMarker() method. Closes #1299. (bed647f)
  • Introduced #isBefore and #isAfter in model.Node and view.Node. Additionally, model.Node#is() and view.Node#is() and view.Node#getPath() were added. Closes #1365. (4c38683)

Bug fixes

  • model.Differ should not throw when multiple, intersecting remove changes were buffered. Closes #1392. (3a348fd)
  • model.Range#getTransformedByDelta should not crash for MoveDelta which moves no nodes. Closes #1358. (ff8ba9e)
  • conversion.downcast-converters.changeAttribute should not consume if element creators returned null. Closes #1369. (6866256)
  • conversion.downcast-converters.downcastAttributeToElement should let specify from what element the model attribute will be converted. Closes #1370. (f8dec1e)

Other changes

  • Increased the specificity of CSS rules. Introduced the .ck class for editor UI components (see: ckeditor/ckeditor5#494). (6bf32c0)
  • Refactored how markers removal is converted from the model to the view. Closes #1226. (f6de5f5)
  • Removed the unnecesary model.Writer#setTextData() method. Closes #1363. (b484822)
  • Renamed plural method names to singular and singular attribute names to plural. See ckeditor/ckeditor5#742. (9465c82)
  • View selection is now split onto Selection and DocumentSelection. Closes #1304 . (b466e3f)

BREAKING CHANGES

  • The writer#setMarker() method is used only to create a new marker and it does not accept a marker instance as a parameter. To update existing marker use writer#updateMarker() method.
  • The options.usingOperation option in writer#setMarker() is now a required one.
  • The range parameter was removed. Use options.range instead.
  • Properties in MatcherPattern, view ElementDefinition and options for conversion utils have been renamed: class to classes, style to styles, attribute to attributes.
  • Introduced view.DocumentSelection. It has protected API and can be modified only by the view writer. Observers creating instance of selection (like SelectionObserver, MutationObserver) use the view.Selection class now.