Home | Knowledgebase | News | Submit Request | View Ticket | Register | Login
Knowledgebase
Root
Article Ref JZX-115
Created June 13, 2008
Print
Problem
Editing the tinymce editor (HTML Editor)
Solution

You may want to remove the button or add the feature inside your tinymce so it will suit with your need. It can be done easily.


There are 2 files: for Front End and Staff Panel.
Please refer to /gui/smarty_template/templates/. It will list both in Front and Staff directory. It is tiny_mce_include.tpl


####################
    tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : "mceEditor",
        theme : "advanced",
        relative_urls : false,
        theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,link,unlink,separator,forecolor,backcolor,image,charmap,fontsizeselect",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        force_p_newlines : false,
        convert_newlines_to_brs : true,
        forced_root_block : '',
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|

onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
    });
##################


Front End will have new line for the language:
##################
    tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : "mceEditor",
        theme : "advanced",
        relative_urls : false,
        theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,link,unlink,separator,forecolor,backcolor,image,charmap,fontsizeselect",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        force_p_newlines : false,
        convert_newlines_to_brs : true,
        forced_root_block : '',
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|

onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
        language:"{/literal}{$page.tinymce_lang}{literal}"
    });
##################



For further reference, please check http://tinymce.moxiecode.com/

Related articles
Update front end layout
Anti XSS attack
Change logo, text and favicon
Find articles that may help you solve common issues
© 2006-2009 GreenDesktiny.com