My logic is like this:
- My users need a WYSIWYG editor such as TinyMCE...
- ...but they also want to insert the occasional Smarty tag -- for example {startExpandCollapse}...{stopExpandCollapse}, or a bit of Javascript to hide email addresses from robots.
- It's convenient to put these tags in TinyMCE's "Custom Dropdown" menu, and that works fine for tags that don't mind being embedded in ... or other HTML block-level elements...
- ...but it can wreck more complex tags that don't like being enclosed.
And for people who are comfortable with HTML, is there a quick way to insert snippets directly?
Calguy has written:
Makes a lot of sense, but there are times when I'd like to offer them more.Users will screw something up if there is the slightest possibility, so don't give it to them. If your customer will be editing a page that has smarty tags in them, move the smarty tags into the page template.