@@ -7,16 +7,16 @@ import { MarkSpec } from "prosemirror-model";
77// The ideal solution would be to not depend on tiptap nodes / marks, but be able to use prosemirror nodes / marks directly
88// this way we could directly use the exported marks from @handlewithcare /prosemirror-suggest-changes
99export const SuggestionAddMark = Mark . create ( {
10- name : "insertion " ,
10+ name : "y-attributed-insert " ,
1111 inclusive : false ,
12- excludes : "deletion modification insertion " ,
12+ excludes : "y-attributed-delete y-attributed-format y-attributed-insert " ,
1313 addAttributes ( ) {
1414 return {
1515 id : { default : null , validate : "number" } , // note: validate is supported in prosemirror but not in tiptap, so this doesn't actually work (considered not critical)
1616 } ;
1717 } ,
1818 extendMarkSchema ( extension ) {
19- if ( extension . name !== "insertion " ) {
19+ if ( extension . name !== "y-attributed-insert " ) {
2020 return { } ;
2121 }
2222 return {
@@ -52,16 +52,16 @@ export const SuggestionAddMark = Mark.create({
5252} ) ;
5353
5454export const SuggestionDeleteMark = Mark . create ( {
55- name : "deletion " ,
55+ name : "y-attributed-delete " ,
5656 inclusive : false ,
57- excludes : "insertion modification deletion " ,
57+ excludes : "y-attributed-delete y-attributed-format y-attributed-insert " ,
5858 addAttributes ( ) {
5959 return {
6060 id : { default : null , validate : "number" } , // note: validate is supported in prosemirror but not in tiptap
6161 } ;
6262 } ,
6363 extendMarkSchema ( extension ) {
64- if ( extension . name !== "deletion " ) {
64+ if ( extension . name !== "y-attributed-delete " ) {
6565 return { } ;
6666 }
6767 return {
@@ -100,9 +100,9 @@ export const SuggestionDeleteMark = Mark.create({
100100} ) ;
101101
102102export const SuggestionModificationMark = Mark . create ( {
103- name : "modification " ,
103+ name : "y-attributed-format " ,
104104 inclusive : false ,
105- excludes : "deletion insertion " ,
105+ excludes : "y-attributed-delete y-attributed-format y-attributed-insert " ,
106106 addAttributes ( ) {
107107 // note: validate is supported in prosemirror but not in tiptap
108108 return {
@@ -114,7 +114,7 @@ export const SuggestionModificationMark = Mark.create({
114114 } ;
115115 } ,
116116 extendMarkSchema ( extension ) {
117- if ( extension . name !== "modification " ) {
117+ if ( extension . name !== "y-attributed-format " ) {
118118 return { } ;
119119 }
120120 return {
0 commit comments