Allows commenting outside edit mode when seamless editing is disabled. (#5422)
This commit is contained in:
@@ -27,6 +27,10 @@ export default class Comment extends Mark {
|
||||
};
|
||||
}
|
||||
|
||||
get allowInReadOnly() {
|
||||
return true;
|
||||
}
|
||||
|
||||
keys({ type }: { type: MarkType }): Record<string, Command> {
|
||||
return this.options.onCreateCommentMark
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user