Fixed a bug that prevent "new note" button from working in discussion forums.
This commit is contained in:
parent
69d113142c
commit
2a8405e2ad
|
@ -1031,10 +1031,11 @@ Editor.prototype.cleanup_html = function ( key_code ) {
|
|||
}
|
||||
|
||||
Editor.prototype.cleanup_range = function () {
|
||||
if ( this.iframe.contentWindow.getSelection )
|
||||
if ( this.iframe && this.iframe.contentWindow.getSelection ) {
|
||||
var selection = this.iframe.contentWindow.getSelection();
|
||||
if ( selection.isCollapsed )
|
||||
this.exec_command( "removeformat" );
|
||||
}
|
||||
}
|
||||
|
||||
Editor.prototype.unformat_selection = function () {
|
||||
|
|
Reference in New Issue