TinyMCE WYSIWYG editor

Use with newsletters - TinyMCE WYSIWYG editor

Use with newsletters

by Kofod95 » Sat Jul 01, 2023 9:12 am

To enable on Newsletters (some people do use that built-in feature), there are at least two settings that must be changed if you send links to your own site, beside just adding the page and the text-area:
line 65: relavtive_urls : false,
line 66: remove_script_host : false,

So, line 44 looks like this:

Code: Select all

  var $good_pages = ['catalog.php', 'categories.php', 'manufacturers.php', 'info_pages.php', 'newsletters.php']; // what pages do you want to load the tinymce editor on
line 52:

Code: Select all

  selector: 'textarea[name^="products_description"], textarea[name^="categories_description"],  textarea[name^="manufacturers_description"], textarea[name^="page_text"], textarea[name^="content"]',
and then the changes on line 65 and 66. Then it works well with the newsletters. Of course, email clients are different, so beware of that.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Contact: