[WIKI-466] refactor: remove rich text read only editor (#7241)

* refactor: remove rich text read only editor

* fix: type imports
This commit is contained in:
Aaryan Khandelwal 2025-07-03 14:16:17 +05:30 committed by GitHub
parent 7d141f26ad
commit 6f27ec031d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 126 additions and 262 deletions

View file

@ -4,7 +4,7 @@ import { CircleArrowUp, CornerDownRight, RefreshCcw, Sparkles } from "lucide-rea
import { Tooltip } from "@plane/ui";
// components
import { cn } from "@plane/utils";
import { RichTextReadOnlyEditor } from "@/components/editor";
import { RichTextEditor } from "@/components/editor";
// helpers
// hooks
import { useWorkspace } from "@/hooks/store";
@ -38,7 +38,8 @@ export const AskPiMenu: React.FC<Props> = (props) => {
</span>
{response ? (
<div>
<RichTextReadOnlyEditor
<RichTextEditor
editable={false}
displayConfig={{
fontSize: "small-font",
}}

View file

@ -8,7 +8,7 @@ import { EditorRefApi } from "@plane/editor";
import { Tooltip } from "@plane/ui";
// components
import { cn } from "@plane/utils";
import { RichTextReadOnlyEditor } from "@/components/editor";
import { RichTextEditor } from "@/components/editor";
// helpers
// plane web constants
import { AI_EDITOR_TASKS, LOADING_TEXTS } from "@/plane-web/constants/ai";
@ -208,10 +208,11 @@ export const EditorAIMenu: React.FC<Props> = (props) => {
</span>
{response ? (
<div>
<RichTextReadOnlyEditor
<RichTextEditor
displayConfig={{
fontSize: "small-font",
}}
editable={false}
id="editor-ai-response"
initialValue={response}
containerClassName="!p-0 border-none"