I am looking for any trick to configure my plugin with arguments in the CKEditor configuration. I need to pass some parameters that I can only pass when displaying my view.
I need something like this (sample with jQuery adapter):
jQuery('textarea.wysiwyg').ckeditor(function(){},{
'width' : '640px',
'resize_maxWidth' : '640px',
'extraPlugins' : 'my_plugin',
'toolbar' : [['Bold', 'Italic', '-', 'NumberedList', 'BulletedList'],['Link', 'Unlink','-','MyPlugin'],['Paste','PasteFromWord'],['Source']]
'my_plugin' : {
'param1' : 'value1',
'param2' : 'value2',
}
});
But I have not yet found any plugin configuration information with CKEditor.
source
share