Commit 0f126c90 authored by 周宏民's avatar 周宏民

fix: 修改

parent 3db08fda
Pipeline #53972 failed with stages
in 5 seconds
...@@ -156,15 +156,7 @@ const RichText = forwardRef((props, ref) => { ...@@ -156,15 +156,7 @@ const RichText = forwardRef((props, ref) => {
} }
}); });
editor.txt.eventHooks.imgClickEvents.push((e) => { editor.txt.eventHooks.imgClickEvents.push((e) => {});
// 图片预览
// 已弃用
// let img = e?.selector?.getAttribute('src') || '';
// if (img) {
// setImgPreviewSrc(img);
// setImgVisible(true);
// }
});
// 粘贴图片上传 // 粘贴图片上传
editor.txt.eventHooks.pasteEvents.push((e) => { editor.txt.eventHooks.pasteEvents.push((e) => {
const file = e?.clipboardData?.items[0]?.getAsFile() || null; const file = e?.clipboardData?.items[0]?.getAsFile() || null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment