The ability to change appearance (toolbar)
June 30, 2008 - 12:59pm — Lion31
| Project: | FCKEditor Plugin |
| Version: | 1.2.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I would really likle to have the method that would switch from one toolbar to another (for example... simple, extended, professional)...

Comments
#1
<script type="text/javascript">jQuery(function(){
jQuery.fck.config = {path:'/fckeditor/'};
jQuery('textarea').fck({
toolbar: 'Default'
});
});
</script>
You can choose Default and Basic.
In the file /fckeditor/fckconfig.js you can edit existing toolbars and even create new ones that can be called through the jQuery plugin.
See the fck documentation at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/T... for more information.
Good luck
#2
You don't have to modify the default fckeditor config files to create a custom toolbar. This is actually do-able from within your script too. Just pass the ['config'].CustomConfigurationsPath to the .fck object on creation like:
$('#fck_textarea').fck({path: '/js/fckeditor/', height:200,
config: {CustomConfigurationsPath: '/js/my_fckeditor_options.js'},
toolbar: "my_toolbar"});
where my_toolbar is defined in '/js/my_fckeditor_options.js' (along with any other custom options)