richtext
This commit is contained in:
parent
7483f3e77c
commit
ee10608ef2
|
|
@ -770,11 +770,6 @@ export const TypeRichText: React.FC<any> = ({
|
|||
},
|
||||
}),
|
||||
];
|
||||
const AfterEditor = () => {
|
||||
const { editor } = useCurrentEditor();
|
||||
if (!editor) return <></>;
|
||||
return <InitEditor editor={editor} local={local} />;
|
||||
};
|
||||
return (
|
||||
<div
|
||||
ref={(e) => {
|
||||
|
|
@ -829,7 +824,6 @@ export const TypeRichText: React.FC<any> = ({
|
|||
}}
|
||||
content={input.value}
|
||||
editable={!disabled}
|
||||
slotAfter={<AfterEditor />}
|
||||
></EditorProvider>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue