mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
adjust editor
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user