Ticket #6644: 6644.patch

File 6644.patch, 2.0 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/sourcearea/plugin.js

     
    7272                                                                win.on( 'resize', onResize );
    7373                                                                setTimeout( onResize, 0 );
    7474                                                        }
    75                                                         // As we prevent click to put focus on editor container,
    76                                                         // while 'mousedown' inside <textarea> is also captured,
    77                                                         // but we must stop the even propagation, otherwise
    78                                                         // it's not possible to place the caret inside of it (non IE and IE9).
    79                                                         if ( document.addEventListener )
    80                                                         {
    81                                                                 textarea.on( 'mousedown', function( evt )
    82                                                                         {
    83                                                                                 evt.data.stopPropagation();
    84                                                                         } );
    85                                                         }
    8675
    8776                                                        // Reset the holder element and append the
    8877                                                        // <textarea> to it.
  • _source/plugins/toolbar/plugin.js

     
    159159
    160160                                                var labelId = CKEDITOR.tools.getNextId();
    161161
    162                                                 var output = [ '<div class="cke_toolbox" role="toolbar" aria-labelledby="', labelId, '"' ],
     162                                                var output = [ '<div class="cke_toolbox" role="toolbar" aria-labelledby="', labelId, '" onmousedown="return false;"' ],
    163163                                                        expanded =  editor.config.toolbarStartupExpanded !== false,
    164164                                                        groupStarted;
    165165
  • _source/themes/default/theme.js

     
    118118                        var container = CKEDITOR.dom.element.createFromHtml( [
    119119                                '<span' +
    120120                                        ' id="cke_', name, '"' +
    121                                         ' onmousedown="return false;"' +
    122121                                        ' class="', editor.skinClass, ' ', editor.id, ' cke_editor_', name, '"' +
    123122                                        ' dir="', editor.lang.dir, '"' +
    124123                                        ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy