Ticket #4047: 4047.patch

File 4047.patch, 1.9 KB (added by tobiasz.cudnik, 2 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    429429                                                if ( keystrokeHandler ) 
    430430                                                        keystrokeHandler.attach( domDocument ); 
    431431 
     432                                                // Cancel default action for backspace in IE for images. (#4047) 
     433                                                if ( CKEDITOR.env.ie ) 
     434                                                { 
     435                                                        editor.on( 'key', function( event ) 
     436                                                        { 
     437                                                                // Backspace. 
     438                                                                if ( event.data.keyCode == 8 ) 
     439                                                                { 
     440                                                                        var el = editor.getSelection().getSelectedElement(); 
     441                                                                        if ( el && el.is( 'img' ) ) 
     442                                                                        { 
     443                                                                                // Make undo snapshot. 
     444                                                                                editor.fire( 'saveSnapshot' ); 
     445                                                                                // Remove manually. 
     446                                                                                el.remove(); 
     447                                                                                editor.fire( 'saveSnapshot' ); 
     448                                                                                // Cancel event. 
     449                                                                                event.data = true; 
     450                                                                        } 
     451                                                                } 
     452                                                        } ); 
     453                                                } 
     454 
    432455                                                // Adds the document body as a context menu target. 
    433456                                                if ( editor.contextMenu ) 
    434457                                                        editor.contextMenu.addTarget( domDocument ); 
  • CHANGES.html

     
    6767                <li><a href="http://dev.fckeditor.net/ticket/4368">#4368</a> : borderColor table cell attribute haven't worked for none-IE</li> 
    6868                <li><a href="http://dev.fckeditor.net/ticket/4203">#4203</a> : In IE quirksmode + toolbar collapsed + source mode editing block height was incorrect.</li> 
    6969                <li><a href="http://dev.fckeditor.net/ticket/4387">#4387</a> : Right clicking in Kama skin can lead to a javascript error.</li> 
     70                <li><a href="http://dev.fckeditor.net/ticket/4047">#4047</a> : In IE Backspace button on control type triggered history backward.</li> 
    7071        </ul> 
    7172        <h3> 
    7273                CKEditor 3.0</h3> 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy