AnsweredAssumed Answered

TinyMCE..how do you override the web-client-config-wcm.xml ?

Question asked by tvaughan77 on Feb 11, 2009
Latest reply on Feb 23, 2010 by willson
Hi,

Short of editing the exploded-war tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config-wcm.xml, where do I stick the customizations I make to the TinyMCE widgets?

I tried putting a "web-client-config-wcm.xml" in tomcat/shared/classes/alfresco (and the extension subdirectory, and the web-extensions subdirectoy).  I also tried calling the file "web-client-config-wcm-custom.xml . . . nothing seems to get "picked up"

Here's the contents of my XML file:

<alfresco-config>

   <config>

      <wcm>
         <xforms>
           <widget xforms-type="xf:textarea"
                   appearance="custom"
                   javascript-class-name="alfresco.xforms.RichTextEditor">
             <param name="theme_advanced_buttons1">bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,undo,redo</param>
             <param name="height">100</param>
             <param name="cleanup_on_startup">true</param>
             <param name="convert_newlines_to_brs">true</param>
             <param name="force_p_newlines">false</param>
             <param name="apply_source_formatting">true</param>
           </widget>
           <widget xforms-type="xf:textarea"
                   appearance="custom-minimal"
                   javascript-class-name="alfresco.xforms.RichTextEditor">
             <param name="height">100</param>
             <param name="convert_newlines_to_brs">true</param>
             <param name="force_p_newlines">false</param>
             <param name="apply_source_formatting">true</param>
           </widget>

         </xforms>
      </wcm>

   </config>

</alfresco-config>

Outcomes