Added
- Add new
wrap
action to default RTE. - Added
isInstanceOf
,isChildOf
methods toComponent
. - Added
component:select:before
,component:hover:before
events.
These could be used to prevent some components from being selected/hovered.
editor.on('component:select:before component:hover:before', (cmp, opts) => {
if (['b', 'i', 'u'].indexOf(cmp.get('tagName')) >= 0) {
opts.abort = true;
}
});
Changed
- Avoid JS output if component
script
function is empty #4140