editor.js/modules/comments.js
George Berezhnoy 4aa8e352d8 First commit
2017-01-11 13:13:44 +03:00

18 lines
No EOL
330 B
JavaScript

var comments = function(comments) {
comments.add = function(node) {
var id = node.dataset.id,
commentInput = codex.draw.commentInput();
commentInput.dataset.blockId = id;
node.insertBefore(commentInput, node.firstChild);
};
return comments;
}({});
module.exports = comments;