Home
TeamSite
TinyMCE custom config options
kgrimm
We are trying to apply custom config options as specified in the TS_71_Forms Developer Guide.pdf in the section titled "Table 5 Allowed Custom Configuration Items". These options are listed as allowed options in that table: remove_linebreaks, force_p_newlines, and apply_source_formatting. There are no examples listed in that doc for how to do this but we have attempted to set them as follows:
IWTinyMCECustomConfig("OFI-config","apply_source_formatting","false");
IWTinyMCECustomConfig("OFI-config","force_p_newlines","false");
IWTinyMCECustomConfig("OFI-config","remove_linebreaks","false");
In TinyMCE standalone we see a difference in the preservation of newlines when we have these options set. In TeamSite TinyMCE we are not seeing these options applied. Has anyone had any luck setting these options?
Find more posts tagged with
Comments
Rick Poulin
Remove the quotes around "false" as the string "false" interprets as non-null which evaluates to true in a conditional statement. It is possible that the non-TeamSite version of TinyMCE is somewhat more lenient in that it might convert "false" to false (the boolean) for you when setting the values.
kgrimm
Thanks for the help. I tried that as well as using 0 and "f" and none of those did the trick. Each time I cleared my cached and verified through Firebug that the new copy of the custom_config.js file was retrieved. I've tried other things like setting the "height" and "width" configs and they seemed to have no affect as well.
kgrimm
An update on this. It appears that config options are being read in although the behavior of the remove_linebreaks is not the same as the behavior in the standalone tinymce. When I set the cleanup option to true or false I do notice a difference in behavior. Regardless of what I set the remove_linebreaks option to however, TinyMCE in TS always removes linebreaks in my text when it renders in the HTML editor.