I have some trouble with the plugin,I need get the current CKEDITOR instance.
I try to use:
var config = CKEDITOR.currentInstance.config
I was define some attributes for my applicationto use.
e.g.
CKEDITOR.replace('editor1', {
toolbar: 'Full',
modelId: 1,
nodeId: 1,
filebrowserImageAllowedExtensions: '.(jpg|gif|jpeg|png|bmp)$'
});
I need use the attributes in plugin, but how to get the current instance in the plugin?
I try to use:
var config = CKEDITOR.currentInstance.config
I was define some attributes for my applicationto use.
e.g.
CKEDITOR.replace('editor1', {
toolbar: 'Full',
modelId: 1,
nodeId: 1,
filebrowserImageAllowedExtensions: '.(jpg|gif|jpeg|png|bmp)$'
});
I need use the attributes in plugin, but how to get the current instance in the plugin?
Re: Help plz,How to get the current instance in plugin!
In plugin using the:
config = editor.config;