Index:_source/plugins/wysiwygarea/plugin.js
|
|
|
802 | 802 | { |
803 | 803 | domDocument.on( 'selectionchange', function() |
804 | 804 | { |
805 | | var body = domDocument.getBody(), |
| 805 | var range= null, body = domDocument.getBody(); |
| 806 | if (editor != null && editor.getSelection() != null) { |
806 | 807 | range = editor.getSelection().getRanges()[ 0 ]; |
807 | | |
808 | | if ( body.getHtml().match( /^<p> <\/p>$/i ) |
| 808 | } |
| 809 | if ( range && body.getHtml().match( /^<p> <\/p>$/i ) |
809 | 810 | && range.startContainer.equals( body ) ) |
810 | 811 | { |
811 | 812 | // Avoid the ambiguity from a real user cursor position. |