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.
Built from https://develop.svn.wordpress.org/trunk@28866 git-svn-id: http://core.svn.wordpress.org/trunk@28666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d9286ad21
commit
db501d7f72
|
@ -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');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue