X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fdialogs%2Ftable.js;h=ddd47f5f4256b25049a1c304fc86b9d9d6fb8317;hb=055b6b0792ce7dc53d47af606b367c04b927c2ab;hp=6ad826cb50626c725a3d2527b35b5bb2d28923be;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git diff --git a/_source/plugins/table/dialogs/table.js b/_source/plugins/table/dialogs/table.js index 6ad826c..ddd47f5 100644 --- a/_source/plugins/table/dialogs/table.js +++ b/_source/plugins/table/dialogs/table.js @@ -43,6 +43,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } else if ( ranges.length > 0 ) { + // Webkit could report the following range on cell selection (#4948): + //
] + if ( CKEDITOR.env.webkit ) + ranges[ 0 ].shrink( CKEDITOR.NODE_ELEMENT ); + var rangeRoot = ranges[0].getCommonAncestor( true ); selectedTable = rangeRoot.getAscendant( 'table', true ); } @@ -227,6 +232,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license id : 'txtRows', 'default' : 3, label : editor.lang.table.rows, + required : true, style : 'width:5em', validate : function() { @@ -252,6 +258,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license id : 'txtCols', 'default' : 2, label : editor.lang.table.columns, + required : true, style : 'width:5em', validate : function() {