Hi there
First off, CKEditor is a brilliant software. But I have a bit of a problem with it. As soon as I try to change anything with a dropdown (format, style, fontsize, font) the error "this.$.focus is not a function" is returned and nothing happens. Using the ckeditor_source.js I figured out the error happens in window.js in core/dom. I didn't find anything in the forum or anywhere on google about this, so I wonder what I'm doing wrong since I seem to be the only one experiencing this problem.
I tried with CKEditor 3.3, 3.5 and 3.6.1, all with the same result. I have 2 instances of CKEditor on the same page and I use jQuery (tried with version 1.4.2 and 1.6.2 to check if it's no jQuery problem). Both of which I don't think should be a problem, but that's pretty much my setup.
Can I provide you with any more information to help figure out what the problem is? The code I use is very simple:
var editor = CKEDITOR.replace(instanceName,
{
templates_replaceContent : false,
language : '<?= Zend_Registry::getInstance()->Zend_Translate->getLocale() ?>'
}
);
This problem occurs in FF4. In Chrome the error looks like this:
Uncaught TypeError: Property 'focus' of object [object DOMWindow] is not a function
Thanks for any help
Markus
First off, CKEditor is a brilliant software. But I have a bit of a problem with it. As soon as I try to change anything with a dropdown (format, style, fontsize, font) the error "this.$.focus is not a function" is returned and nothing happens. Using the ckeditor_source.js I figured out the error happens in window.js in core/dom. I didn't find anything in the forum or anywhere on google about this, so I wonder what I'm doing wrong since I seem to be the only one experiencing this problem.
I tried with CKEditor 3.3, 3.5 and 3.6.1, all with the same result. I have 2 instances of CKEditor on the same page and I use jQuery (tried with version 1.4.2 and 1.6.2 to check if it's no jQuery problem). Both of which I don't think should be a problem, but that's pretty much my setup.
Can I provide you with any more information to help figure out what the problem is? The code I use is very simple:
var editor = CKEDITOR.replace(instanceName,
{
templates_replaceContent : false,
language : '<?= Zend_Registry::getInstance()->Zend_Translate->getLocale() ?>'
}
);
This problem occurs in FF4. In Chrome the error looks like this:
Uncaught TypeError: Property 'focus' of object [object DOMWindow] is not a function
Thanks for any help
Markus

Re: Error message on changing format: this.$.focus is not a
I have the very same error when using CKEditor from Ruby on Rails and with jQuery.
Re: Error message on changing format: this.$.focus is not a
With the new version the problem is still present. Isn't everyone experiencing this? On IE8 the problem also exists and even after "fixing" it with the following code in source/core/dom/window.js
focus : function() { if ( CKEDITOR.env.webkit && this.$.parent ) { // TODO: this throws an error in CHROME! so we check if the function exists... if(typeof this.$.parent.focus == 'function') { this.$.parent.focus(); } } // TODO: this throws an error in FIREFOX! so we check if the function exists... if(typeof this.$.focus == 'function') { this.$.focus(); }; },the format is not applied on IE8. With firefox and Chrome it works after not calling the focus method.
Any help? I'm getting kind of desperate.
hoho,fixed...thank you so much!
hoho,fixed...thank you so much!