将图像粘贴到 TinyMCE 编辑器中 [英] Paste Image Into TinyMCE Editor
问题描述
我正在寻找将图像粘贴到 TinyMCE 编辑器中的方法,我已经在谷歌上搜索了一段时间,但找不到任何相关的答案.
I am looking at ways to Paste an Image into TinyMCE editor, I have been googling it for a while, but couldn't find any related answer.
我可以将带有 src 内容的 <img>
附加到编辑器(当我将图像粘贴到页面上而不是编辑器内部时).
I can append an <img>
with src content to the Editor(when i paste the image on the page other than inside the editor).
我无法将其粘贴到编辑器中.我正在使用 Javascript 和 jquery.有没有人知道我该怎么做.
I am not able to paste it inside the Editor. I am using Javascript and jquery. Has anyone got an idea, how i could do this.
推荐答案
将 paste_data_images 设置为true";将允许粘贴的图像,将其设置为false"时将禁止粘贴图像.
Setting paste_data_images to "true" will allow the pasted images, while setting it to "false" will disallow pasted images.
这篇关于将图像粘贴到 TinyMCE 编辑器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!