From e15f0baf30e5187b0281b891b68dc7e3a1bcc32c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 28 Nov 2025 08:26:35 +0100 Subject: [PATCH] :sparkles: Replace direct draft-js usage with internal module --- frontend/src/app/main/ui/workspace/shapes/text/editor.cljs | 2 +- frontend/vendor/draft-js/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs index 3f86bbc748..135df9ecb3 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs @@ -6,7 +6,7 @@ (ns app.main.ui.workspace.shapes.text.editor (:require - ["draft-js" :as draft] + ["@penpot/draft-js" :as draft] [app.common.data :as d] [app.common.data.macros :as dm] [app.common.geom.point :as gpt] diff --git a/frontend/vendor/draft-js/index.js b/frontend/vendor/draft-js/index.js index a3712864c6..23bd20af01 100644 --- a/frontend/vendor/draft-js/index.js +++ b/frontend/vendor/draft-js/index.js @@ -16,7 +16,9 @@ export const { RichTextEditorUtil, SelectionState, convertFromRaw, - convertToRaw + convertToRaw, + EditorBlock, + Editor } = pkg; import DraftPasteProcessor from 'draft-js/lib/DraftPasteProcessor.js';