Commit 650717ca authored by 周宏民's avatar 周宏民

fix: test

parent 3db08fda
Pipeline #53981 failed with stages
in 7 seconds
......@@ -92,7 +92,6 @@ const RichText = forwardRef((props, ref) => {
}
editor.menus.extend(menuKey, InsertABCMenu);
}
editor.config = Object.assign(
{},
editor.config,
......@@ -156,15 +155,7 @@ const RichText = forwardRef((props, ref) => {
}
});
editor.txt.eventHooks.imgClickEvents.push((e) => {
// 图片预览
// 已弃用
// let img = e?.selector?.getAttribute('src') || '';
// if (img) {
// setImgPreviewSrc(img);
// setImgVisible(true);
// }
});
editor.txt.eventHooks.imgClickEvents.push((e) => {});
// 粘贴图片上传
editor.txt.eventHooks.pasteEvents.push((e) => {
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