Skip to content
Snippets Groups Projects

Image track

Merged Christos requested to merge image-track into master
4 files
+ 57
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -2,10 +2,21 @@ const figureNode = {
content: 'image* figcaption{0,1}',
group: 'block',
marks: '',
parseDOM: [{ tag: 'figure' }],
parseDOM: [
{
tag: 'figure',
getAttrs(hook, next) {
next();
},
},
],
toDOM() {
return ['figure', 0];
},
toDOM(hook, next) {
hook.value = ['figure', 0];
next();
},
};
export default figureNode;