Skip to content

Commit

Permalink
fix(contribution): ne pas placer dans une alerte un tableau à la copie (
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot authored Apr 3, 2024
1 parent 141b23d commit 09d04fd
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ declare module "@tiptap/core" {
interface Commands<ReturnType> {
alert: {
setAlert: () => ReturnType;
toggleAlert: () => ReturnType;
unsetAlert: () => ReturnType;
};
}
}

export const inputRegex = /^\s*>\s$/;
export const inputRegex = /^\s*\!\!\s$/;

export const Alert = Node.create<AlertOptions>({
name: "alert",
Expand All @@ -27,8 +25,6 @@ export const Alert = Node.create<AlertOptions>({

group: "block",

defining: true,

parseHTML() {
return [{ tag: "div" }];
},
Expand All @@ -44,16 +40,6 @@ export const Alert = Node.create<AlertOptions>({
({ commands }) => {
return commands.wrapIn(this.name);
},
toggleBlockquote:
() =>
({ commands }) => {
return commands.toggleWrap(this.name);
},
unsetBlockquote:
() =>
({ commands }) => {
return commands.lift(this.name);
},
};
},

Expand Down

0 comments on commit 09d04fd

Please sign in to comment.