Hello,
It appears that when using CKEditor in IE (and possibly FF) and you select an image in the editor window and try to delete it using the "backspace" key, the browser thinks you want to go back instead.
I believe that this problem could be solved by a script like:
function stopKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 8) && (node.type=="img")) {return false;}
}
But I'm not exactly sure where to put it in the new CKEditor folder (or if it would even work).
Any one else run into this problem and/or have a possible solution?
Thanks,
Dave
It appears that when using CKEditor in IE (and possibly FF) and you select an image in the editor window and try to delete it using the "backspace" key, the browser thinks you want to go back instead.
I believe that this problem could be solved by a script like:
function stopKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 8) && (node.type=="img")) {return false;}
}
But I'm not exactly sure where to put it in the new CKEditor folder (or if it would even work).
Any one else run into this problem and/or have a possible solution?
Thanks,
Dave
Re: Hitting Backspace When Trying to Delete Img Sends User Back
This issue is already in our issue tracker:
http://dev.fckeditor.net/ticket/4047
To be notified on any updates please add your email in CC field. Fix will be available in nightly version when ready.
Thank you for the report.
Re: Hitting Backspace When Trying to Delete Img Sends User Back
Thanks for the update. I tried installing the patch in the wysiwyg/plugin.js file but unfortunately the bug still exists. Tested on IE 7