TinyMCE – Valid Tags

December 4, 2008

TinyMCE by deafult will strip specific tags unless specified not to. For example the Flash <object> tag. These tags can be added in C:\alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\web-client-config-wcm.xml so that they are not stripped upon save. For example:


<param name="extended_valid_elements">object[classid|codebase|width|height|id|align],

param[name|value],embed[src|quality|scale|bgcolor|width|height|name|align|

allowscriptaccess|type|pluginspage|flashvars]</param>

Here is a full example including the above line:

<widget xforms-type="xf:group"
appearance="minimal"
javascript-class-name="alfresco.xforms.HGroup"/>
<widget xforms-type="xf:group"
javascript-class-name="alfresco.xforms.VGroup"/>
<widget xforms-type="xf:repeat"
javascript-class-name="alfresco.xforms.Repeat"/>
<widget xforms-type="xf:textarea"
appearance="minimal"
javascript-class-name="alfresco.xforms.PlainTextEditor"/>
<widget xforms-type="xf:textarea"
javascript-class-name="alfresco.xforms.RichTextEditor">
<param name="theme_advanced_buttons1">bold,italic,underline,separator,forecolor,backcolor,

separator,link,unlink,image,code</param>
<param name="extended_valid_elements">object[classid|codebase|width|height|id|align],

param[name|value],embed[src|quality|scale|bgcolor|width|height|name|align|

allowscriptaccess|type|pluginspage|flashvars]</param>
</widget>

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>