Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paste Image Into TinyMCE Editor

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.

I can append an <img> with src content to the Editor(when i paste the image on the page other than inside the editor).

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.

like image 752
Bramha Avatar asked Nov 29 '12 10:11

Bramha


People also ask

How do you paste an image in TinyMCE editor?

You need to upload the image to a server. You need to be able to access that image through a link. That link is what you insert into TinyMCE. There actually is a URL you can get with modern browsers.

Is TinyMCE a wysiwyg?

TinyMCE is a free WYSIWYG HTML editor. And it's one of those small, helpful components (consider how many websites rely on text entry) that you can't do without. It's the WYSIWYG editor of choice for the world's leading product teams.

Does TinyMCE use WordPress?

WordPress is bundled with the open source HTML WYSIWYG editor TinyMCE by Moxiecode Systems, AB.


1 Answers

Enable paste_data_images

Setting paste_data_images to "true" will allow the pasted images, while setting it to "false" will disallow pasted images.

like image 124
Ziv Foox Avatar answered Sep 18 '22 02:09

Ziv Foox