Skip to content
Snippets Groups Projects
Commit 59c5b5a4 authored by chris's avatar chris
Browse files

fill the gap save feedback

parent 15e16baf
No related branches found
No related tags found
1 merge request!410Fixes
......@@ -73,6 +73,18 @@ export default ({ node, view, getPos, readOnly }) => {
};
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;
};
......
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