Topic: How to customize the tinymce Editor (Content Editor)
For those who installed it, if you want customize buttons options available in the tinymce content editor (e.g. bold, alignment, bullets, insert table, etc...) here's how...
Background:
There are 2 tinymce editions 'advanced' and 'simple'
To change ‘Advanced’ to ‘Simple’ (or vice versa)
1. Open js/editor.js
2. On Line 3 change
theme : "advanced",
to
theme : "simple",
To add/delete/move button options
1. Open js.editor.js in code editor
2. You'll see this:
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "style,layer,table,save,advhr,advimage,advlink,media,searchreplace,contextmenu,paste,directionality,nonbreaking,xhtmlxtras,",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 :
"forecolor,backcolor,cut,copy,paste,/*pastetext*/,/*pasteword*/,/*search*/,/*replace,*/,bullist,numlist,outdent,indent,/*blockquote*/,undo,redo,link,unlink,/*anchor*/,hr,removeformat,image,sub,sup,media,charmap,/*cleanup*/,/*help*/,/*code*/",
theme_advanced_buttons3 :
"",
theme_advanced_buttons4 :
"",
Process:
1. Delete the text that corresponds to the button you want to delete or move to a new location or use /* xxx */ to hide it. For example, above the "block quotes" button is removed with /*blockquote*/
It could also just as easily be deleted.
2. 'theme_advanced_buttons1/2/3 :' refers to the row of buttons, so cut/pasting text to a new row and changing the order is possible.
3. NOTE: a row can NOT be blank. It MUST contain at least "", (see my Row 3 & 4 above) for example. All the buttons were either removed or deleted from those rows but the 'advanced' edition requires 4 rows....so left "",
Enjoy.
Tokyoj
"You can't build a reputation on what you're going to do." (Henry Ford)
"Insanity is doing the same thing over and over, expecting different results." (Albert Einstein)