cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying the HTML editor page in Alfresco Client/Share

thirunavukkaras
Champ in-the-making
Champ in-the-making
Hi,

I am trying to customize the HTML editor in Alfresco Share/Client.

As per my business requirements the HTML editor should have only few elements(Bold,Italic,Underline etc)

I want to remove all other elements.I have deleted theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,forecolor,backcolor",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
lines  from create-html.jsp file  and it causes to remove few elements.Further I want to remove some more elements..

Please do share your ideas to customize the HTML ediotr as per requirements.

Thanks in Advance.Thiru
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
Best place for information is here: http://tinymce.moxiecode.com/examples/simple.php

Cheers,

Kev

vasisualy
Champ on-the-rise
Champ on-the-rise
Dear colleagues,

I'd like to ask you for an advice.

I just installed Share 3.4b and trying to customise TinyMCE editor in wiki pages.
Tell me please the right way how to do it.

Do I have to edit .js/.jsp files directly?
Is the any way to customise TinyMCE in standard Share's interface via editing share-config-custom.xml ?

Thank you in advance.

vasisualy
Champ on-the-rise
Champ on-the-rise
I have done some investigation and found that TinyMCE mentioned in many .ftl files.
I think it's due to legacy.

Now I'm going to add to TinyMCE spellchecker.
I do not know when it will be done. Honestly speaking it's not a high priority job for me.

Anyway here is a list of affected files:
Wiki
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/include/alfresco-template.ftl

Here you have to add special tinyMCE.init section.

<#–
   Template "templateHtmlEditorAssets" macro.
   Loads wrappers for Rich Text editors.
–>
<#macro templateHtmlEditorAssets>
<!– HTmL Editor Assets –>
   <#– NOTE: Do not attempt to load -min.js version of tiny_mce/tiny_mce.js –>
   <script type="text/javascript" src="${page.url.context}/res/modules/editors/tiny_mce/tiny_mce.js"></script>
<!– TinyMCE customisation –>
<script type="text/javascript">
tinyMCE.init({




Discussion
Create/Edit Topic
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/discussions/createtopic.get.html.ftl

Reply
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/discussions/replies.get.html.ftl

Blog: Post
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/blog/postedit.get.html.ftl

Blog: Add Comment
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/blog/comments.get.html.ftl

Blog: Edit Comment
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/blog/createcomment.get.html.ftl


Document Library Create HTML Content
/opt/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/form/controls/common/editorparams.inc.ftl