From 3865bbdd30ae7de9ea5d20f5735800deef4d2e6f Mon Sep 17 00:00:00 2001 From: Palanikannan1437 <73993394+Palanikannan1437@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:34:28 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Add=20support=20for=20hardB?= =?UTF-8?q?reak=20extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds support for the hardBreak extension in the `CoreEditorExtensions` component located at `packages/editor/core/src/ui/extensions/index.tsx`. The extension now includes an HTMLAttributes object with a class of "p-2" for styling purposes. --- packages/editor/core/src/ui/extensions/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/editor/core/src/ui/extensions/index.tsx b/packages/editor/core/src/ui/extensions/index.tsx index 19d8ce894..6ae5ba7a7 100644 --- a/packages/editor/core/src/ui/extensions/index.tsx +++ b/packages/editor/core/src/ui/extensions/index.tsx @@ -53,6 +53,11 @@ export const CoreEditorExtensions = ( class: "leading-normal -mb-2", }, }, + hardBreak: { + HTMLAttributes: { + class: "p-2", + }, + }, code: false, codeBlock: false, horizontalRule: false,