Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能:禁止用户拖拽内容进编辑器 #227

Open
xixihhhh opened this issue Oct 8, 2024 · 1 comment
Open

功能:禁止用户拖拽内容进编辑器 #227

xixihhhh opened this issue Oct 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@xixihhhh
Copy link

xixihhhh commented Oct 8, 2024

需求描述

因为我是用了customPaste过滤用户的输入,但是用户可以拖拽一些文字图片进编辑器,拖拽的内容不会通过customPaste过滤,像请教一下怎么禁止拖拽内容进入编辑器

相关 issue

wangeditor-team/wangEditor#5972

@cycleccc cycleccc added the enhancement New feature or request label Oct 8, 2024
@cycleccc
Copy link
Owner

cycleccc commented Oct 8, 2024

function handleOnDrop(e: Event, textarea: TextArea, editor: IDomEditor) {

拖拽的逻辑在这里处理,针对你的这个情况可能需要另开放一个配置控制禁止拖拽。

@cycleccc cycleccc changed the title 请问怎么禁止用户拖拽内容进编辑器 功能:禁止用户拖拽内容进编辑器 Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants