Since CKEditor is just an object, you can simply define your own property in the editor configuration and capture it in the plugin, because the editor is passed to the init function.
CKEDITOR.replace('mytextarea', {
customValues: { name: 'myname' },
extraPlugins: 'myplugin'
}
and then in the plugin:
CKEDITOR.plugins.add('myplugin',
{
init: function (editor) {
console.log(editor.config.customValues.name);
}
}
source
share