-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
移除编辑器内文本拖拽功能 #6169
Comments
这个具体是什么操作? |
请问能否先实现纯文本格式TXT的拖动?拖动后,被拖动的内容变为不带任何格式的TXT文本。拖动有格式的文本内容时可以进行一下提示,会丢失格式。 |
可以设置选项,让用户自己选择是否启用这样简陋的拖拽功能。应该会有相当量的人选择开启吧 |
实现不了,太多的边界情况目前无法处理。 |
不甘心地再问一下,请问当前有实现文字拖拽功能的可行性基础了吗?😜 |
通过浏览器接口获取的拖拽内容和 ctrl+X 的内容不同,无法去校验并校正。 |
收到,也就是还是不行呀,继续蹲守。。。 |
你看上去是纯文本,但是拖拽的时候系统会转换成一个标签,里面记录了字体、颜色、背景等很多信息。 |
感谢V姐的解释 |
期待早日找到解决方式 |
拖拽后浏览器的处理比较霸道,目前没有找到很好的办法去进行修正。如果不修正的话,表面上看没什么问题,但其实 Dom 已经发生了变化,不仅带有大量的 style,还会丢失行级元素的属性。在没有找到好的办法之前只能先移除该功能。
https://ld246.com/article/1665326888611/comment/1665557995894#comments
The text was updated successfully, but these errors were encountered: