fix: enter key extension validation added

This commit is contained in:
Anmol Singh Bhatia 2024-05-30 16:49:09 +05:30
parent 87de913c76
commit 0e4fc414b1

View File

@ -17,6 +17,5 @@ export const RichTextEditorExtensions = ({
}: TArguments) => [
SlashCommand(uploadFile),
dragDropEnabled === true && DragAndDrop(setHideDragHandle),
// TODO; add the extension conditionally for forms that don't require it
// EnterKeyExtension(onEnterKeyPress),
onEnterKeyPress && EnterKeyExtension(onEnterKeyPress),
];