Fix JS error in Press This, props greuben, fixes #17501
git-svn-id: https://develop.svn.wordpress.org/trunk@18155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4024085812
commit
a6d817da56
|
@ -366,7 +366,6 @@ var photostorage = false;
|
||||||
function append_editor(text) {
|
function append_editor(text) {
|
||||||
if ( '' != text && tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden()) {
|
if ( '' != text && tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden()) {
|
||||||
tinyMCE.execCommand('mceSetContent', false, tinyMCE.activeEditor.getContent({format : 'raw'}) + '<p>' + text + '</p>');
|
tinyMCE.execCommand('mceSetContent', false, tinyMCE.activeEditor.getContent({format : 'raw'}) + '<p>' + text + '</p>');
|
||||||
tinyMCE.execCommand('mceCleanup');
|
|
||||||
} else {
|
} else {
|
||||||
insert_plain_editor(text);
|
insert_plain_editor(text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue