Ticket #4822: 4822.patch
File 4822.patch, 865 bytes (added by , 13 years ago) |
---|
-
_source/plugins/table/dialogs/table.js
68 68 }, 69 69 onOk : function() 70 70 { 71 if ( this._.selectedElement ) 72 { 73 var selection = editor.getSelection(), 74 bms = editor.getSelection().createBookmarks(); 75 } 76 71 77 var table = this._.selectedElement || makeElement( 'table' ), 72 78 me = this, 73 79 data = {}; … … 193 199 // Insert the table element if we're creating one. 194 200 if ( !this._.selectedElement ) 195 201 editor.insertElement( table ); 202 // Properly restore the selection inside table. (#4822) 203 else 204 selection.selectBookmarks( bms ); 196 205 197 206 return true; 198 207 },