编辑器有粘贴事件吗?怎么将粘贴的内容先转化为md格式再粘贴进编辑器? #750
13165680192
started this conversation in
General
Replies: 1 comment
-
参考这个示例: editorRef.value?.domEventHandlers({
paste(e) {
if (你的判断) {
e.preventDefault();
editorRef.value?.insert(() => {
return {
targetValue: '你的内容',
select: false,
deviationStart: 0,
deviationEnd: 0
};
});
}
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如题:希望有一个粘贴事件返回,可以先自定义处理后复制的内容后再插入到编辑器
Beta Was this translation helpful? Give feedback.
All reactions