feat: Allow commenting in code (#5953)
* Allow commenting in code marks * Allow commenting in code blocks * Floating comment toolbar in code block
This commit is contained in:
@@ -150,7 +150,7 @@ export default class CodeFence extends Node {
|
||||
},
|
||||
},
|
||||
content: "text*",
|
||||
marks: "",
|
||||
marks: "comment",
|
||||
group: "block",
|
||||
code: true,
|
||||
defining: true,
|
||||
|
||||
@@ -118,4 +118,4 @@ export const richExtensions: Nodes = [
|
||||
/**
|
||||
* Add commenting and mentions to a set of nodes
|
||||
*/
|
||||
export const withComments = (nodes: Nodes) => [Mention, Comment, ...nodes];
|
||||
export const withComments = (nodes: Nodes) => [...nodes, Mention, Comment];
|
||||
|
||||
Reference in New Issue
Block a user