This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
v1.0.0-alpha.1
Reinmar
released this
03 Oct 12:28
·
2813 commits
to master
since this release
Bug fixes
model.Range
will now be correctly transformed if it was at the end of a split element. Instead of sticking to the old element, it will be moved to the end of the new element. Closes #1142. (1be7ed1)- Fixed a bug in
Range#getTransformedByDelta()
that caused editor to crash after someMergeDelta
s were transformed. Closes #1132. (97a4f4b) - Fixed a bug when a block quote could not be applied to an empty paragraph with a basic style (bold, etc.) active in it. Closes #1127. (6d33b9f)
- Fixed a bug when editor crashed during
MergeDelta
transformation in a specific case. Closes #1103. (ef1b07e) - Spaces inside
<code>
will be rendered in a normal way (previouslyDomConverter
tried to treat<code>
like a preformatted block which is not what HTML needs). Closes #1126. (88630b7) - Fixed a bug when undo did no changes instead of merging elements, in a scenario when an element was split and then the "new" element was removed. See https://github.com/ckeditor/ckeditor5-undo/issues/65#issuecomment-323682195. (60024c0)
- View and model nodes will now be removed from their old parents when they are added to a new parent to prevent having same node on multiple elements' children lists. Closes #1139. (dec9c28)
Features
- Introduced
model.DocumentSelection#hasOwnRange
property. Closes #1137. (4feb678) - Introduced
Schema#removeDisallowedAttributes()
method to filter out disallowed attributes from given nodes. Closes #1120. (d776c71)
BREAKING CHANGES
- View and model nodes are now automatically removed from their old parents when they are inserted into new elements. This is important e.g. if you iterate through element's children and they are moved during that iteration. In that case, it's safest to cache the element's children in an array.