Skip to content
Snippets Groups Projects
Commit 15e16baf authored by chris's avatar chris
Browse files

matching save feedback

parent 437a40f5
No related branches found
No related tags found
1 merge request!410Fixes
...@@ -73,6 +73,18 @@ export default ({ node, view, getPos, readOnly }) => { ...@@ -73,6 +73,18 @@ export default ({ node, view, getPos, readOnly }) => {
}; };
const saveFeedBack = () => { const saveFeedBack = () => {
const allNodes = getNodes(main);
allNodes.forEach(singleNode => {
if (singleNode.node.attrs.id === node.attrs.id) {
main.dispatch(
main.state.tr.setNodeMarkup(getPos(), undefined, {
...singleNode.node.attrs,
feedback: feedBack,
}),
);
setFirstRun(false);
}
});
return false; return false;
}; };
......
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