Skip to content
Snippets Groups Projects
Commit 6f3f2d1c authored by chris's avatar chris
Browse files

add all group notes

parent ea91d2cf
No related branches found
No related tags found
1 merge request!301Question controls
...@@ -61,7 +61,7 @@ const Wax = props => { ...@@ -61,7 +61,7 @@ const Wax = props => {
if (notes.length > 0) { if (notes.length > 0) {
notes.forEach(note => { notes.forEach(note => {
schema.nodes.footnote.spec.toDOM = node => { schema.nodes[note.name].spec.toDOM = node => {
// eslint-disable-next-line prefer-rest-params // eslint-disable-next-line prefer-rest-params
if (node) return [note.name, node.attrs, 0]; if (node) return [note.name, node.attrs, 0];
}; };
...@@ -77,7 +77,7 @@ const Wax = props => { ...@@ -77,7 +77,7 @@ const Wax = props => {
if (notes.length > 0) { if (notes.length > 0) {
notes.forEach(note => { notes.forEach(note => {
schema.nodes.footnote.spec.toDOM = node => { schema.nodes[note.name].spec.toDOM = node => {
// eslint-disable-next-line prefer-rest-params // eslint-disable-next-line prefer-rest-params
if (node) return [note.name, node.attrs]; if (node) return [note.name, node.attrs];
}; };
......
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