X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fdialogs%2Ftable.js;h=38652d4a4d75a9158bbf7ab702f7b9a318aba371;hb=f8fc585c18d287eb325c575596d183122486b641;hp=87e55df68bf3e7e49e8d77e9e5a6afee6891519e;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/table/dialogs/table.js b/_source/plugins/table/dialogs/table.js index 87e55df..38652d4 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 ); } @@ -568,6 +573,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { if ( this.getValue() ) selectedTable.setAttribute( 'summary', this.getValue() ); + else + selectedTable.removeAttribute( 'summary' ); } } ]