FAQ
Editing, Publishing
How to customize the WYSIWYG Editor |
Category: Editing, Publishing |
|
|
Tags: WYSIWYG editor, TinyMCE, customizing editor |
SOBI2 uses an integrated version of TinyMCE as front-end editor for textareas. This editor can be adjusted to fit your needs.
Adjust the size of the editor If you have a very small column for the Add/Edit Entry form, the editor can be too wide for it. First step is to set the editor's text area width in the Fields Manager to a narrow width. Do that by adjusting the number of field columns. The editor itself needs a certain width for the button bars. So, if the editor width is too big you have to reorder the position of the editor buttons. Do that by editing the file /components/com_sobi2/includes/js/tiny_init.js. tinyMCE.init({ mode : 'none', theme : 'advanced', theme_advanced_buttons1 : 'bold,italic,underline,fontselect,fontsizeselect, separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,undo,redo,', theme_advanced_buttons2 : 'code,hr,link,separator,bullist,numlist', theme_advanced_buttons3 : '', 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 : 'english' });
Move some buttons from the first bar to the second bar E.g. change these two lines to move the buttons undo and redo to the second bar: theme_advanced_buttons1 : 'bold,italic,underline,fontselect,fontsizeselect, separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,', theme_advanced_buttons2 : 'undo,redo,code,hr,link,separator,bullist,numlist', In the same way you can remove some of the buttons. Further adaptions: The TinyMCE editor is written by Moxiecode Systems. They have a documentationon how to change the behaviour of the editor. |
Date added: 29.1.2008 |
|
| Hits: 940 |
| Powered by Sigsiu.NET | ![]() |
Visitors:
Help with the costs of providing SOBI2 for free