TinyMCE: add class to the editor body for the old fullscreen mode (still can be used by plugins), see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@19457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d97f8794a
commit
dc87dec0a4
|
@ -169,8 +169,10 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( ed.id != 'wp_mce_fullscreen' )
|
if ( ed.id != 'wp_mce_fullscreen' && ed.id != 'mce_fullscreen' )
|
||||||
ed.dom.addClass(ed.getBody(), 'wp-editor');
|
ed.dom.addClass(ed.getBody(), 'wp-editor');
|
||||||
|
else if ( ed.id == 'mce_fullscreen' )
|
||||||
|
ed.dom.addClass(ed.getBody(), 'mce-fullscreen');
|
||||||
|
|
||||||
// remove invalid parent paragraphs when pasting HTML and/or switching to the HTML editor and back
|
// remove invalid parent paragraphs when pasting HTML and/or switching to the HTML editor and back
|
||||||
ed.onBeforeSetContent.add(function(ed, o) {
|
ed.onBeforeSetContent.add(function(ed, o) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -18,7 +18,7 @@ $wp_db_version = 19389;
|
||||||
*
|
*
|
||||||
* @global string $tinymce_version
|
* @global string $tinymce_version
|
||||||
*/
|
*/
|
||||||
$tinymce_version = '345-20111114';
|
$tinymce_version = '345-20111127';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the cache manifest version
|
* Holds the cache manifest version
|
||||||
|
|
Loading…
Reference in New Issue