cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new TinyMCE plugin, new custom button in the editor

fmurialdo
Champ in-the-making
Champ in-the-making
We created new TinyMCE plugin following the recommendations from http://wiki.moxiecode.com/index.php/TinyMCE:Creating_Plugin.
We put the new plugin folder in the Alfresco install alfresco/scripts/tiny_mce/plugins/
Then updated web-client-config-wcm.xml to add the button for the plugin.
This is apparently not enough. What else do you need to do? How do the plugin get registered?
There is a table folder for a table plugin in the plugins directory, if we remove that folder and rename our new plugin folder as 'table' then it picks up our plugin under that name.

<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,table</param>
           </widget>

Thanks.
2 REPLIES 2

lakshmi
Champ in-the-making
Champ in-the-making
Hi

Were you able to find a solution for this?

I too need to add plugins to TinyMCE editor. Can anybody who knows the solution help me out?

I tried adding my plugin folder to alfresco/scripts/tiny_mce/plugins

and edited the create-html.jsp to inclue the plugin in init method of tinymce….but its not reflecting in the UI. How do i do it?

Thanks,
Lakshmi

lakshmi
Champ in-the-making
Champ in-the-making
Hi i was able to do this. I just placed the plugin folder i wanted in alfresco/scripts/tiny_mce/plugins

and edited the create-html.jsp to include my plugin in the tinymce.init portion and i got the plugin in my html editor.

Earlier i had some typo error.Sorry abt that!!!

FYI i used alfresco-community-tomcat 2.1.0

Thanks,
Lakshmi