CKEditor:以所见即所得模式从剪贴板在当前插入点插入 HTML?
似乎要在 CKEditor 中将 HTML 插入到源代码中,必须查看源代码,然后向下扫描代码以找到适当的插入点。
我遇到一种情况,用户的剪贴板中有 HTML,但不会精通 HTML,并且很难理解他们需要在源中的何处插入 HTML 剪辑
SO:有没有办法让 CKEditor在所见即所得模式下,将用户剪贴板中当前插入点的任何内容粘贴到源代码中?
这需要开发一个插件吗?如果是这样,有人可以提供如何完成此操作的高级概述吗?
It seems that to insert HTML into the source code in CKEditor one must view source, then scan down through the code to find the appropriate insertion point.
I have a situation where the user will have HTML in their clipboard, but will not be HTML proficient, and will have a tough time understanding where in the source they need to insert the clip of HTML
SO: Is there a way to get CKEditor to paste, into the source code, whatever is in the user's clipboard at the current insertion point while in WYSIWYG mode?
Would this require developing a plugin? If so, could anyone someone provide a high-level overview of how that would be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用可用的嵌入媒体插件。
只需添加该插件即可。使用它,用户可以将 html 代码粘贴到对话框中,并且该代码将粘贴到编辑器中光标所在的位置。
use the Embed Media plugin which is available.
Just add that plugin. Using that the user can paste the html code in a dialog box and that will be pasted in the editor wherever the cursor was.