Ticket #5512: 5512.patch

File 5512.patch, 876 bytes (added by brooks, 14 years ago)
  • _source/plugins/tabletools/plugin.js

     
    868868                                                        order : 1,
    869869                                                        getItems : function()
    870870                                                        {
    871                                                                 var selection = editor.getSelection(),
    872                                                                         cells = getSelectedCells( selection );
     871                                                                var selection = editor.getSelection();
     872                                                               
     873                                                                // IE couldn't get the right selection,try a dirty solution (#5512)
     874                                                                if ( !selection )
     875                                                                {
     876                                                                        editor.focus();
     877                                                                        selection = editor.getSelection();
     878                                                                }
     879                                                               
     880                                                                var     cells = getSelectedCells( selection );
    873881                                                                return {
    874882                                                                        tablecell_insertBefore : CKEDITOR.TRISTATE_OFF,
    875883                                                                        tablecell_insertAfter : CKEDITOR.TRISTATE_OFF,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy