Hi there,
Is there any way of specifying the toolbar config in php?
I thought I'd be able to do something like this but it doesn't work:
$oFCKConfig->ToolbarSets['Profile1'] = "[
['Cut','Copy','Paste','PasteText','PasteWord'],
['Undo','Redo','-','Bold','Italic','Underline','StrikeThrough'],
'/',
['OrderedList','UnorderedList','-','Outdent','Indent'],
['Link','Unlink','Anchor'],
'/',
['Style'],
['Table','Image','Flash','Rule','SpecialChar'],
['About']"
];
$oFCKeditor->ToolbarSet = 'Profile1';
It seems a shame if you can specify all the settings in a file, but not specify a toolbar profile.
Is there any way of specifying the toolbar config in php?
I thought I'd be able to do something like this but it doesn't work:
$oFCKConfig->ToolbarSets['Profile1'] = "[
['Cut','Copy','Paste','PasteText','PasteWord'],
['Undo','Redo','-','Bold','Italic','Underline','StrikeThrough'],
'/',
['OrderedList','UnorderedList','-','Outdent','Indent'],
['Link','Unlink','Anchor'],
'/',
['Style'],
['Table','Image','Flash','Rule','SpecialChar'],
['About']"
];
$oFCKeditor->ToolbarSet = 'Profile1';
It seems a shame if you can specify all the settings in a file, but not specify a toolbar profile.
RE: toolbar config in php file
see or even know why you would want to place the tool bar options IN your fck argument..
once you set up the profile in the fckconfig.js
This is all you need:
$oFCKeditor->ToolbarSet = 'Profile1';
Creating profiles 'on the fly' is bad practice and wont give you any dynamics. Using
it as designed allows you to change one file ( fckconfig.js) to change all tool bars.