mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
renamed wrapper to just RichTextEditor
This commit is contained in:
parent
07c4699b02
commit
ae9c729fc7
@ -20,7 +20,7 @@ interface RichTextEditorWrapperProps
|
||||
|
||||
const fileService = new FileService();
|
||||
|
||||
export const RichTextEditorWrapper = React.forwardRef<EditorHandle, RichTextEditorWrapperProps>(
|
||||
export const RichTextEditor = React.forwardRef<EditorHandle, RichTextEditorWrapperProps>(
|
||||
({ workspaceSlug, ...props }, ref) => {
|
||||
const editorSuggestions = useMention();
|
||||
|
||||
@ -38,4 +38,4 @@ export const RichTextEditorWrapper = React.forwardRef<EditorHandle, RichTextEdit
|
||||
}
|
||||
);
|
||||
|
||||
RichTextEditorWrapper.displayName = "RichTextEditorWrapper";
|
||||
RichTextEditor.displayName = "RichTextEditor";
|
||||
|
@ -12,7 +12,7 @@ import { AIService } from "services/ai.service";
|
||||
// components
|
||||
import { GptAssistantPopover } from "components/core";
|
||||
import { PriorityDropdown } from "components/dropdowns";
|
||||
import { RichTextEditorWrapper } from "components/editor/rich-text-wrapper";
|
||||
import { RichTextEditor } from "components/editor/rich-text-wrapper";
|
||||
// ui
|
||||
import { Button, Input, ToggleSwitch } from "@plane/ui";
|
||||
// types
|
||||
@ -271,7 +271,7 @@ export const CreateInboxIssueModal: React.FC<Props> = observer((props) => {
|
||||
name="description_html"
|
||||
control={control}
|
||||
render={({ field: { value, onChange } }) => (
|
||||
<RichTextEditorWrapper
|
||||
<RichTextEditor
|
||||
workspaceSlug={workspaceSlug}
|
||||
ref={editorRef}
|
||||
debouncedUpdatesEnabled={false}
|
||||
|
@ -5,7 +5,7 @@ import useReloadConfirmations from "hooks/use-reload-confirmation";
|
||||
import debounce from "lodash/debounce";
|
||||
// components
|
||||
import { TextArea } from "@plane/ui";
|
||||
import { RichTextEditorWrapper } from "components/editor/rich-text-wrapper";
|
||||
import { RichTextEditor } from "components/editor/rich-text-wrapper";
|
||||
// types
|
||||
import { TIssue } from "@plane/types";
|
||||
import { TIssueOperations } from "./issue-detail";
|
||||
@ -158,7 +158,7 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = (props) => {
|
||||
name="description_html"
|
||||
control={control}
|
||||
render={({ field: { onChange } }) => (
|
||||
<RichTextEditorWrapper
|
||||
<RichTextEditor
|
||||
workspaceSlug={workspaceSlug}
|
||||
value={localIssueDescription.description_html}
|
||||
rerenderOnPropsChange={localIssueDescription}
|
||||
|
@ -25,7 +25,7 @@ import { ParentIssuesListModal } from "components/issues";
|
||||
import { IssueLabelSelect } from "components/issues/select";
|
||||
import { CreateLabelModal } from "components/labels";
|
||||
import { CreateStateModal } from "components/states";
|
||||
import { RichTextEditorWrapper } from "components/editor/rich-text-wrapper";
|
||||
import { RichTextEditor } from "components/editor/rich-text-wrapper";
|
||||
// ui
|
||||
import { Button, CustomMenu, Input, ToggleSwitch } from "@plane/ui";
|
||||
// helpers
|
||||
@ -428,7 +428,7 @@ export const DraftIssueForm: FC<IssueFormProps> = observer((props) => {
|
||||
name="description_html"
|
||||
control={control}
|
||||
render={({ field: { value, onChange } }) => (
|
||||
<RichTextEditorWrapper
|
||||
<RichTextEditor
|
||||
workspaceSlug={workspaceSlug as string}
|
||||
ref={editorRef}
|
||||
debouncedUpdatesEnabled={false}
|
||||
|
@ -9,7 +9,7 @@ import useToast from "hooks/use-toast";
|
||||
// services
|
||||
import { AIService } from "services/ai.service";
|
||||
// components
|
||||
import { RichTextEditorWrapper } from "components/editor/rich-text-wrapper";
|
||||
import { RichTextEditor } from "components/editor/rich-text-wrapper";
|
||||
import { GptAssistantPopover } from "components/core";
|
||||
import {
|
||||
CycleDropdown,
|
||||
@ -322,7 +322,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
||||
name="description_html"
|
||||
control={control}
|
||||
render={({ field: { value, onChange } }) => (
|
||||
<RichTextEditorWrapper
|
||||
<RichTextEditor
|
||||
workspaceSlug={workspaceSlug as string}
|
||||
ref={editorRef}
|
||||
debouncedUpdatesEnabled={false}
|
||||
|
@ -5,7 +5,7 @@ import { Controller, useForm } from "react-hook-form";
|
||||
import { useProject, useUser } from "hooks/store";
|
||||
import useReloadConfirmations from "hooks/use-reload-confirmation";
|
||||
// components
|
||||
import { RichTextEditorWrapper } from "components/editor/rich-text-wrapper";
|
||||
import { RichTextEditor } from "components/editor/rich-text-wrapper";
|
||||
import { IssuePeekOverviewReactions } from "components/issues";
|
||||
// ui
|
||||
import { TextArea } from "@plane/ui";
|
||||
@ -19,7 +19,7 @@ interface IPeekOverviewIssueDetails {
|
||||
issue: TIssue;
|
||||
issueReactions: any;
|
||||
user: IUser | null;
|
||||
issueUpdate: (issue: Partial<TIssue>) => void;
|
||||
issueUpdate: (issue: Partial<TIssue>) => Promise<void>;
|
||||
issueReactionCreate: (reaction: string) => void;
|
||||
issueReactionRemove: (reaction: string) => void;
|
||||
isSubmitting: "submitting" | "submitted" | "saved";
|
||||
@ -175,7 +175,7 @@ export const PeekOverviewIssueDetails: FC<IPeekOverviewIssueDetails> = (props) =
|
||||
name="description_html"
|
||||
control={control}
|
||||
render={({ field: { onChange } }) => (
|
||||
<RichTextEditorWrapper
|
||||
<RichTextEditor
|
||||
workspaceSlug={workspaceSlug}
|
||||
value={localIssueDescription.description_html}
|
||||
rerenderOnPropsChange={localIssueDescription}
|
||||
|
Loading…
Reference in New Issue
Block a user