Index:_source/plugins/wysiwygarea/plugin.js =================================================================== --- _source/plugins/wysiwygarea/plugin.js (version 3.6.2) +++ _source/plugins/wysiwygarea/plugin.js (working copy) @@ -802,10 +802,11 @@ { domDocument.on( 'selectionchange', function() { - var body = domDocument.getBody(), + var range= null, body = domDocument.getBody(); + if (editor != null && editor.getSelection() != null) { range = editor.getSelection().getRanges()[ 0 ]; - - if ( body.getHtml().match( /^
<\/p>$/i ) + } + if ( range && body.getHtml().match( /^
<\/p>$/i ) && range.startContainer.equals( body ) ) { // Avoid the ambiguity from a real user cursor position.