UNPKG

727 BJavaScriptView Raw
1export var unsupportedBlock = {
2 inline: false,
3 group: 'block',
4 atom: true,
5 selectable: true,
6 attrs: {
7 originalValue: { default: {} },
8 },
9 parseDOM: [
10 {
11 tag: '[data-node-type="unsupportedBlock"]',
12 getAttrs: function (dom) { return ({
13 originalValue: JSON.parse(dom.getAttribute('data-original-value') || '{}'),
14 }); },
15 },
16 ],
17 toDOM: function (node) {
18 var attrs = {
19 'data-node-type': 'unsupportedBlock',
20 'data-original-value': JSON.stringify(node.attrs.originalValue),
21 };
22 return ['div', attrs, 'Unsupported content'];
23 },
24};
25//# sourceMappingURL=unsupported-block.js.map
\No newline at end of file