We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can you help me with TinyMCE settings?

Development and Programming

Matthew Pennell's avatar
Matthew Pennell
221 posts
15 years ago
Matthew Pennell's avatar Matthew Pennell

I’ve got an annoying problem with the TinyMCE settings on a 1.6 EE site. I’m trying to get the link wizard to work properly for any URL, but I can’t make it work for both regular URLs and the ones created by the File Uploader.

These are my relevant TinyMCE settings:

relative_urls : false,
document_base_url : '/',
remove_script_host : false,
convert_urls : true,

These work fine if you enter normal http URLs in the popup TinyMCE link wizard. But if you try to enter a URL generated by the file uploader, e.g. { filedir_18 } myfile.pdf the generated HTML is incorrect:

http://mysite.com/http://mysite.com/path/to/dir/myfile.pdf

For those sorts of links to work, I need to set remove_script_host to true and relative_urls to true, but that then breaks other sorts of links. :(

Has anyone figured out a way to have both situations work properly?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.