mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 06:42:56 +02:00
Editor: fix setting wpActiveEditor when TinyMCE is not used, see #21718
git-svn-id: http://core.svn.wordpress.org/trunk@22251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e6fe8c83a3
commit
baeab0b474
@ -608,10 +608,12 @@ final class _WP_Editors {
|
|||||||
try { tinymce.init(init); } catch(e){}
|
try { tinymce.init(init); } catch(e){}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
el = document.getElementsByClassName('wp-editor-wrap');
|
if ( tinyMCEPreInit.qtInit ) {
|
||||||
for ( i in el ) {
|
for ( i in tinyMCEPreInit.qtInit ) {
|
||||||
if ( typeof(el[i]) == 'object' )
|
el = tinyMCEPreInit.qtInit[i].id;
|
||||||
el[i].onmousedown = function(){ wpActiveEditor = this.id.slice(3, -5); }
|
if ( el )
|
||||||
|
document.getElementById('wp-'+el+'-wrap').onmousedown = function(){ wpActiveEditor = this.id.slice(3, -5); }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user