Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Can custom elements be included into tinyMCE?
syim
Hi,
We are using TeamSite 7.3 and tinyMCE for our FormsPublisher (templates). We have custom taglib that we do not want tinyMCE to remove when the editor saves.
For example, we want our users be able to type in followings in the HTML Source Editor, and tinyMCE will save the tags as how they were entered:
<mc:geturl pageId="test"/>
We tried adding followings into /iw-home/httpd/iw/tinymce/config/custom_config.js:
IWTinyMCECustomConfig("myconfig", "extended_valid_elements", "mc:geturl[pageId]");
But this setting does not seem to work. Any idea if we can add custom elements in tinyMCE?
Thanks
Find more posts tagged with
Comments
syim
After doing more testing, I notice it only works if the elements are in lower case. For example, we have a custom element <util:useDecorator name="test"/>, so I put following setting in custom_config.js:
IWTinyMCECustomConfig("myconfig", "extended_valid_elements", "util:useDecorator[name]);
This setting seems to cause tinyMCE to stop working; however, if I change the settings to
IWTinyMCECustomConfig("myconfig", "extended_valid_elements", "util:usedecorator[name]);
Then I am able to specify <util:usedecorator name="test"/> in the tinyMCE HTML Source editor.