From 09d04fd864ff4e5bbf735ea84f0851561fb769ce Mon Sep 17 00:00:00 2001 From: Martial Maillot Date: Wed, 3 Apr 2024 10:00:09 +0200 Subject: [PATCH] =?UTF-8?q?fix(contribution):=20ne=20pas=20placer=20dans?= =?UTF-8?q?=20une=20alerte=20un=20tableau=20=C3=A0=20la=20copie=20(#1338)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forms/EditionField/extensions/Alert.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/targets/frontend/src/components/forms/EditionField/extensions/Alert.ts b/targets/frontend/src/components/forms/EditionField/extensions/Alert.ts index 211f415db..4e75bb67c 100644 --- a/targets/frontend/src/components/forms/EditionField/extensions/Alert.ts +++ b/targets/frontend/src/components/forms/EditionField/extensions/Alert.ts @@ -6,13 +6,11 @@ declare module "@tiptap/core" { interface Commands { alert: { setAlert: () => ReturnType; - toggleAlert: () => ReturnType; - unsetAlert: () => ReturnType; }; } } -export const inputRegex = /^\s*>\s$/; +export const inputRegex = /^\s*\!\!\s$/; export const Alert = Node.create({ name: "alert", @@ -27,8 +25,6 @@ export const Alert = Node.create({ group: "block", - defining: true, - parseHTML() { return [{ tag: "div" }]; }, @@ -44,16 +40,6 @@ export const Alert = Node.create({ ({ commands }) => { return commands.wrapIn(this.name); }, - toggleBlockquote: - () => - ({ commands }) => { - return commands.toggleWrap(this.name); - }, - unsetBlockquote: - () => - ({ commands }) => { - return commands.lift(this.name); - }, }; },