@writergate/quill-image-uploader-nextjs 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/blots/comment.js +6 -4
package/package.json
CHANGED
package/src/blots/comment.js
CHANGED
@@ -14,10 +14,12 @@ class CommentBlot extends InlineBlot {
|
|
14
14
|
"data-comment",
|
15
15
|
value["data-comment"] || value.commentId
|
16
16
|
);
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
if (value["data-suggestion"] === "true") {
|
18
|
+
node.setAttribute(
|
19
|
+
"data-suggestion",
|
20
|
+
value["data-suggestion"]
|
21
|
+
);
|
22
|
+
}
|
21
23
|
}
|
22
24
|
return node;
|
23
25
|
}
|