|
@@ -67,11 +67,6 @@ function RichText({ check, dirCode, isLook, myUrl }: Props, ref: any) {
|
|
|
} else return false;
|
|
|
}, [editorValue]);
|
|
|
|
|
|
- // 富文本信息改变的回调
|
|
|
- const handleChange = useCallback((e: any) => {
|
|
|
- setEditorValue(e);
|
|
|
- }, []);
|
|
|
-
|
|
|
const myInput = useRef<HTMLInputElement>(null);
|
|
|
|
|
|
// 上传图片
|
|
@@ -154,7 +149,7 @@ function RichText({ check, dirCode, isLook, myUrl }: Props, ref: any) {
|
|
|
readOnly={isLook}
|
|
|
placeholder="请输入内容"
|
|
|
value={editorValue}
|
|
|
- onChange={(e) => handleChange(e)}
|
|
|
+ onChange={(e) => setEditorValue(e)}
|
|
|
imageControls={["remove"]}
|
|
|
/>
|
|
|
</div>
|