After checking the source code, it seems that CKEDITOR.replaceAll function can't pass any custom config on call.
Is there any workaround, so that I can pass different custom config to specific textarea?
e.g. I want all textarea that has class "advanced" have different browse image path from textarea with class "normal"
CKEDITOR.replaceAll(function(textarea,config) {
if(textarea.className == "advanced")
{
config.removeButtons = 'About';
return true;
}
else if(textarea.className == "basic")
{
config.removeButtons = 'Cut,Copy,Paste,About,Save,NewPage,DocProps,Preview,Templates,PasteFromWord,SelectAll,Scayt,SpellChecker,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock,Flash,Smiley,Styles,Font,FontSize,Blockquote,Format,Image,Table,Link';
config.uiColor = '#AADC6E';
return true;
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With