Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

absolute URL with TinyMCE

Tags:

tinymce

Everytime i add an image to tinyMCE it converts the image URL to something stupid (removes the hostname and adds ../ or whatever it needs) , so i won't be able to use the image created by tinymce in any other level of the site !

can this be fixed somehow ? relative_urls: "false", not working

Thanks

like image 578
Rami Dabain Avatar asked Dec 21 '22 20:12

Rami Dabain


1 Answers

Use this in your javascript initialization:

relative_urls : false,
remove_script_host : false,
convert_urls : true,

Get TinyMCE to use full image url instead of relative one

like image 197
user1534664 Avatar answered Dec 28 '22 07:12

user1534664