TinyMCE: force 'font-weight: bold` for <strong> and <b> inside the editor or Chrome and Safari may replace them with spans on pasting. Fixes #28656.

git-svn-id: https://develop.svn.wordpress.org/trunk@28866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-06-27 02:59:13 +00:00
parent b864d0955e
commit 9dfcd4030c
2 changed files with 9 additions and 0 deletions

View File

@ -297,6 +297,8 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
} else if ( env.ie < 8 ) {
bodyClass.push('ie7');
}
} else if ( env.webkit ) {
bodyClass.push('webkit');
}
bodyClass.push('wp-editor');

View File

@ -17,6 +17,13 @@ body {
margin: 10px;
}
/* When font-weight is different than the default browser style,
Chrome and Safari replace <strong> and <b> with spans with inline styles on pasting?! */
body.webkit strong,
body.webkit b {
font-weight: bold !important;
}
/* DFW mode */
html.wp-fullscreen,
html.wp-fullscreen body {