简体   繁体   English

bootstrap-wysiwyg:文本删除不起作用

[英]bootstrap-wysiwyg: text dropping doesn't work

Does anyone know why text dropping into the bootstrap-wysiwyg editor doesn't work? 有谁知道为什么将文本放入bootstrap-wysiwyg编辑器不起作用? Copy/pasting works fine but selecting text, dragging it over the editor and dropping it has no effect. 复制/粘贴工作正常,但是选择文本,将其拖到编辑器上并拖放不起作用。

Thanks. 谢谢。

Because the actual editor is a <div> element and not a <textarea> , as you might expect. 因为实际的编辑器是<div>元素,而不是<textarea> ,正如您所期望的那样。

Drag and drop is handled by the browser on a textarea, but a div is not really a control element. 拖放是由浏览器在文本区域上处理的,但div并不是真正的控制元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM