This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
v0.10.0
Bug fixes
-
DomConverter#domToView()
will not throw when converting a comment. Closes #647. (ffc41d4) -
ViewConverterBuilder#fromAttribute()
should not create incorrect matcher object forMatcher
if passed attribute was other thanclass
orstyle
. Closes #919. (6701c4b)Minor upgrades to
ViewConversionBuilder
:- converters from
ViewConversionBuilder
will not convert if "creator function" returnednull
. - simplified view converters building by making
ViewConversionBuilder#toAttribute()
value
param optional. If not set, the attribute value is taken from converted view element.
- converters from
-
Improved compatibility with MS Edge. See #923. Closes #925. (1af4a50)
-
Improved performance of the
view.Element
's inline styles parser. Big property values (like base64 encoded images) should not crash the editor anymore. Closes #881. (3d494a3) -
Removed invalid promise catches from
dev-utils.DeltaReplayer
. Closes #906. (69cfdd1) -
Unified values returned in
data.output
during view-to-model conversion. See breaking changes. Closes #932. (16ae05a)
Features
- Allow passing ranges to the selection constructors (in the model and in the view). Closes #600. (da8a609)
- Events fired by
model.MarkerCollection
will now include marker name after semicolon. Closes #911. (3a8ebed)
Other changes
model.Element#clone()
now does not clone children when passedfalse
and recursively clones children when passedtrue
. Closes #689. (ccb0659)
BREAKING CHANGES
ViewConversionDispatcher#convert()
will always returnmodel.DocumentFragment
(which may be empty in various cases).conversionApi#convertItem()
will log a warning ifdata.output
contains a different value thanmodel.Node
ormodel.DocumentFragment
ornull
.conversionApi#convertChildren()
will always returnmodel.DocumentFragment
.model.Element#clone()
does not clone children when not in thedeep
mode. See #689.