Ticket #8429: 8429.patch
File 8429.patch, 802 bytes (added by , 13 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
803 803 domDocument.on( 'selectionchange', function() 804 804 { 805 805 var body = domDocument.getBody(), 806 range = editor.getSelection().getRanges()[ 0 ]; 806 sel = editor.getSelection(), 807 range = sel && sel.getRanges()[ 0 ]; 807 808 808 809 if ( body.getHtml().match( /^<p> <\/p>$/i ) 809 && range .startContainer.equals( body ) )810 && range && range.startContainer.equals( body ) ) 810 811 { 811 812 // Avoid the ambiguity from a real user cursor position. 812 813 setTimeout( function ()