Added
- Added
Component.getInnerHTML
method. - Added
withProps
andaltQuoteAttr
options toComponent.toHTML
method. - Added
onlyMatched
option to CSS code generator. - Added new options to
editor.Parser.parseHtml
. - Added
config.parser.optionsHtml
configuration options.
Changed
- Make the component resize command more extendable #4097
- Deprecated
config.allowScripts
in favor ofconfig.parser.optionsHtml.allowScripts
.
⚠️ As before,config.parser.optionsHtml.allowScripts
isfalse
by default but now we also remove unsafe attributes from parsed HTML (eg.on*
inline event handlers). In case you need to enable unsafe attributes, you can do it viaconfig.parser.optionsHtml.allowUnsafeAttr
option.