adjust editor

This commit is contained in:
Pete Matsyburka committed 2026-09-24 10:27:11 +03:00
1 parent e004ac2d40
commit e55542a000
1 file changed
+18
@@ -491,6 +491,23 @@ const SpanMark = Mark.create({
}
})
const LayoutSpanMark = SpanMark.extend({
name: 'layoutSpan',
parseHTML () {
return [{
tag: 'span',
priority: 55,
getAttrs (dom) {
if (['left', 'right'].includes(dom.style.float) || dom.style.display === 'inline-block') {
return collectSpanDomAttrs(dom)
}
return false
}
}]
}
})
const LinkMark = Mark.create({
name: 'link',
excludes: '',
@@ -790,6 +807,7 @@ export function buildEditor ({ dynamicAreaProps, attachmentsIndex, renderHtmlFor
ColNode,
DynamicImageNode,
EmptySpanNode,
LayoutSpanMark,
LinkMark,
SpanMark,
CustomBold,