Fix JS error in Press This, props greuben, fixes #17501
git-svn-id: http://svn.automattic.com/wordpress/trunk@18155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4fc66df097
commit
55c55c8f7d
|
@ -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