@sereneinserenade/tiptap-comment-extension
Advanced tools
Comparing version
@@ -20,3 +20,3 @@ 'use strict'; | ||
parseHTML: (el) => el.getAttribute("data-comment-id"), | ||
renderHTML: (attrs) => ({ "data-comment-id": attrs.comment }), | ||
renderHTML: (attrs) => ({ "data-comment-id": attrs.commentId }), | ||
}, | ||
@@ -49,2 +49,3 @@ }; | ||
this.storage.activeCommentId = null; | ||
this.options.onCommentActivated(this.storage.activeCommentId); | ||
return; | ||
@@ -51,0 +52,0 @@ } |
@@ -16,3 +16,3 @@ import { Mark, mergeAttributes } from '@tiptap/core'; | ||
parseHTML: (el) => el.getAttribute("data-comment-id"), | ||
renderHTML: (attrs) => ({ "data-comment-id": attrs.comment }), | ||
renderHTML: (attrs) => ({ "data-comment-id": attrs.commentId }), | ||
}, | ||
@@ -45,2 +45,3 @@ }; | ||
this.storage.activeCommentId = null; | ||
this.options.onCommentActivated(this.storage.activeCommentId); | ||
return; | ||
@@ -47,0 +48,0 @@ } |
{ | ||
"name": "@sereneinserenade/tiptap-comment-extension", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Tiptap Extension for adding comments", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,3 +5,6 @@ { | ||
"module": "ES2015", | ||
"lib": ["es2015", "dom"], | ||
"lib": [ | ||
"es2015", | ||
"dom" | ||
], | ||
"moduleResolution": "node", | ||
@@ -11,3 +14,8 @@ "declaration": true, | ||
"rootDir": "./src", | ||
} | ||
} | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"demos", | ||
"assets", | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14766
1.68%387
2.93%