Hello. I define a inline node ,the schema as below.
{ group: 'inline', inline: true, atom: true, marks: '', // set empty to disable all marks, but it seem not work. attrs: { index: {}, }, parseDOM: [ { tag: 'sup', getAttrs(dom) { return { index: dom.getAttribute('data-index'), } } } ], toDOM(node) { let { index } = node.attrs; return [ 'sup', { 'data-index': index, } ]; } }
it seem the empty marks
not work, it not disable all marks.(After set it to empty, I also can set marks in the node). What can I do for fix the bug?
thx for u help.