Skip to content
Snippets Groups Projects
Commit 4405fb8c authored by chris's avatar chris
Browse files

add schema

parent 53746552
No related branches found
No related tags found
1 merge request!405Oen aside
const OenAsideNode = {
content: 'block+',
group: 'block',
attrs: {
class: { default: '' },
},
defining: true,
parseDOM: [
{
tag: 'aside',
getAttrs(dom) {
return {
class: dom.getAttribute('class'),
};
},
},
],
toDOM(node) {
return [
'aside',
{
class: node.attrs.class,
},
0,
];
},
};
export default OenAsideNode;
import OenAsideNode from './OenAsideNode';
import OenContainerNode from './OenContainerNode'; import OenContainerNode from './OenContainerNode';
import OenSectionNode from './OenSectionNode'; import OenSectionNode from './OenSectionNode';
export default { export default {
oen_container: OenContainerNode, oen_container: OenContainerNode,
oen_section: OenSectionNode, oen_section: OenSectionNode,
oen_aside: OenAsideNode,
}; };
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment