All other browsers recognize focus virtually immediately when the editor area is clicked after instanceReady.
Safari, however, lags on recognizing focus.
I have a function which, on instanceReady, has an on.("focus", function(e) {...});
I destroy and recreate instances when doing an ajax update. When an editor is recreated, Safari allows interaction with the editor area before recognizing focus, and therefore this function is never triggered unless I get out and back in. Does not occur in any other browser.
Does anyone know of any workarounds to this? I have tried using readOnly true/false, and disabling/enabling the textarea, none of which I can sequence properly to work around this issue.
Thanks in advance.
Safari, however, lags on recognizing focus.
I have a function which, on instanceReady, has an on.("focus", function(e) {...});
I destroy and recreate instances when doing an ajax update. When an editor is recreated, Safari allows interaction with the editor area before recognizing focus, and therefore this function is never triggered unless I get out and back in. Does not occur in any other browser.
Does anyone know of any workarounds to this? I have tried using readOnly true/false, and disabling/enabling the textarea, none of which I can sequence properly to work around this issue.
Thanks in advance.
Re: Safari PC lags on focus recognition
But otherwise I developed a workaround for the problem I posted above. I simply respond to the "key" event and fire the focus event so that I capture interaction before the focus event is recognized by Safari. Here is the relevant code:
Re: Safari PC lags on focus recognition
Not only that, but most of the times if you find a problem that happens in Safari in Windows but works fine in Chrome usually means that the behavior in the mac will be totally different and you'll realize that you've been wasting your time for testing in that crap.
Re: Safari PC lags on focus recognition
I must confess that it does take too much time to get to that point. I try to do the same thing with IE6, which actually is possible if you read an extensive amount of stuff and try to synthesize it all into general principles. But what a royal pain. Is Safari the new IE6?
And I noticed that you are dropping IE6 compatibility from CKEditor's 4.0. Smart move. I have to make my site work for the corporate ninnies who can't muster the moxie to update from that woeful platform. But the small subset of my users (reviewers) who will be using your terrific editor will be using modern software, so no worries.
Re: Safari PC lags on focus recognition
I would adjust it so it's executed only for Safari so other browsers don't execute it: you will avoid unexpected problems and you won't penalize users of other browsers that don't suffer the same bug.