Calling any even on the image dialog gives me a JS error
CKEDITOR.on('dialogDefinition', function(ev) {
// Take the dialog name and its definition from the event data
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if (dialogName == 'image') {
dialogDefinition.onShow = function () {
this.selectedPage('Upload');
};
}
});C.preview is undefined
http://localhost:8080/appName/plugins/ckeditor-3.4.1.1-SNAPSHOT/js/ckeditor/plugins/image/dialogs/image.js?t=A8LE4JO
Line 8
CKEDITOR.on('dialogDefinition', function(ev) {
// Take the dialog name and its definition from the event data
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if (dialogName == 'image') {
dialogDefinition.onShow = function () {
this.selectedPage('Upload');
};
}
});
Re: Calling any even on the image dialog gives me a JS error
CKEDITOR.on('dialogDefinition', function(ev) { // Take the dialog name and its definition from the event data var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if (dialogName == 'image') { dialogDefinition.onLoad = function () { this.selectPage('Upload'); }; } });Re: Calling any even on the image dialog gives me a JS error
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!