TinyMCE:Contenteditable - 粘贴插件不起作用

发布于 2024-10-09 02:08:10 字数 187 浏览 0 评论 0原文

我有一个文本块,其中一些区域可通过 contentEditable 属性进行编辑。我正在使用粘贴插件的paste_preprocess 在粘贴之前清理文本。但是当我尝试获取 o.centent (剪贴板数据)时,它返回空。

但是当我尝试对完全可编辑的部分执行相同操作时,效果很好。

有什么线索吗?

谢谢, 伊姆兰

I have a block of text with some of its regions editable via contentEditable property. I am using Paste plugin's paste_preprocess to cleanup the text before pasting it. But when I try it get the o.centent (the clipboard data) it returns empty.

But when I try to do the same with a completely editable section, it works fine.

Any clue?

Thanks,
Imran

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不羁少年 2024-10-16 02:08:10

虽然,它已经被修复了。我邀请前辈们对我用来让它运行的解决方法发表评论。请点击以下链接:

http://tinymce.moxiecode.com/forum /viewtopic.php?pid=84335#p84335

Although, it has been fixed. I invite seniors to please comment on the workaround I used to make it running. Please follow the link below:

http://tinymce.moxiecode.com/forum/viewtopic.php?pid=84335#p84335

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文