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

handle remove text that contains comment

parent d713d52f
No related branches found
No related tags found
1 merge request!548Merge yjs with standard comments
......@@ -55,7 +55,7 @@ const Editoria = () => {
autoFocus
placeholder="Type Something..."
fileUpload={file => renderImage(file)}
// value={demo}
value={demo}
// readonly
layout={layout}
// onChange={debounce(source => {
......
......@@ -79,6 +79,13 @@ export default ({ area, users }) => {
markNodeEl.getBoundingClientRect().top -
WaxSurface.top +
parseInt(WaxSurfaceMarginTop.slice(0, -2), 10);
} else {
// comment is deleted
context.setOption({
comments: comments.filter(comment => {
return comment.id !== id;
}),
});
}
} else {
// Notes
......
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