Hi,
I use jQuery to create CKEditor. Here is the code:
$("textarea.ckeditor").each(function() {
CKEDITOR.replace(this);
});
It works well but if i execute web page from VS.NET, VS.NET notify that there is an exception. When I see the exception's details, it tell me that there is an existed editor which is created. Is it right behavior?
Here is the code like which throw exception:
if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';
I use jQuery to create CKEditor. Here is the code:
$("textarea.ckeditor").each(function() {
CKEDITOR.replace(this);
});
It works well but if i execute web page from VS.NET, VS.NET notify that there is an exception. When I see the exception's details, it tell me that there is an existed editor which is created. Is it right behavior?
Here is the code like which throw exception:
if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';
Re: There is an hidden exception when load CKEditor
CODE: SELECT ALL
config.filebrowserBrowseUrl = '/controls/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/controls/ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = '/controls/ckfinder/ckfinder.html?Type=Flash';
config.filebrowserUploadUrl = '/controls/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = '/controls/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
config.filebrowserFlashUploadUrl = '/controls/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
Re: There is an hidden exception when load CKEditor
CODE: SELECT ALL
CKFinder.SetupAllCKEditor = function( basePath, imageType, flashType )
{
// Setup current instances
for (var editorName in CKEDITOR.instances)
CKFinder.SetupCKEditor(CKEDITOR.instances[editorName], basePath, imageType, flashType) ;
// Future instances
CKEDITOR.on('instanceCreated', function(e) {
CKFinder.SetupCKEditor(e.editor, basePath, imageType, flashType) ;
});
}