wysiwyg editor problem with images
3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 3, 2015 (RSS)
If I add code to the wysiwyg editor, it always adds a slash '/' before the images for example if I add this to the html <img src="images/icon-lease.jpg" alt="" width="25" height="25" align="absmiddle" style="margin-right:8px; margin-left: 5px;"/>
when I save it replaces it like this: <img src="/images/icon-lease.jpg" alt="" width="25" height="25" align="absmiddle" style="margin-right:8px; margin-left: 5px;"/> I don't want to have to upload the image through the editor, I am doing that through ftp. Is there a way to make that it doesn't clean up my code?
Please advise.
By claire - February 3, 2015
Hi there
This is part of the WYSIWYG settings for TinyMCE. I'll check to see if it's possible to add custom settings, otherwise any changes will be overwritten by an upgrade.
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
By claire - February 3, 2015
Okay I don't think this will be possible without doing something that can get overwritten by an upgrade. This is the relevant setting for URLs: http://www.tinymce.com/wiki.php/Configuration:convert_urls
If you set this to false in /lib/wysiwyg.php, TinyMCE should leave your image URLs alone.
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/