This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
v1.0.0-beta.2
Features
- Introduced
writer#updateMarker()
method. Closes #1299. (bed647f) - Introduced
#isBefore
and#isAfter
inmodel.Node
andview.Node
. Additionally,model.Node#is()
andview.Node#is()
andview.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 forMoveDelta
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 amarker
instance as a parameter. To update existing marker usewriter#updateMarker()
method. - The
options.usingOperation
option inwriter#setMarker()
is now a required one. - The
range
parameter was removed. Useoptions.range
instead. - Properties in
MatcherPattern
, viewElementDefinition
and options for conversion utils have been renamed:class
toclasses
,style
tostyles
,attribute
toattributes
. - Introduced
view.DocumentSelection
. It has protected API and can be modified only by the view writer. Observers creating instance of selection (likeSelectionObserver
,MutationObserver
) use theview.Selection
class now.