| | |
| | | else { |
| | | $.extend(conf, { |
| | | plugins: 'autolink charmap code colorpicker directionality emoticons link image media nonbreaking' |
| | | + ' paste table tabfocus textcolor searchreplace' + (config.spellcheck ? ' spellchecker' : ''), |
| | | + ' paste table tabfocus textcolor searchreplace spellchecker', |
| | | toolbar: 'bold italic underline | alignleft aligncenter alignright alignjustify' |
| | | + ' | bullist numlist outdent indent ltr rtl blockquote | forecolor backcolor | fontselect fontsizeselect' |
| | | + ' | link unlink table | emoticons charmap image media | code searchreplace undo redo', |
| | |
| | | }); |
| | | } |
| | | |
| | | // disable TinyMCE plugins/buttons from Roundcube plugin |
| | | $.each(config.disabled_plugins || [], function() { |
| | | conf.plugins = conf.plugins.replace(this, ''); |
| | | }); |
| | | $.each(config.disabled_buttons || [], function() { |
| | | conf.toolbar = conf.toolbar.replace(this, ''); |
| | | }); |
| | | conf.toolbar = conf.toolbar.replace(/\|\s+\|/g, '|'); |
| | | |
| | | // support external configuration settings e.g. from skin |
| | | if (window.rcmail_editor_settings) |
| | | $.extend(conf, window.rcmail_editor_settings); |