mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
TinyMCE: don't access the parent window when opening the (iframe based) Help/Keyboard Shortcuts modal. Fixes #20094.
Built from https://develop.svn.wordpress.org/trunk@29449 git-svn-id: http://core.svn.wordpress.org/trunk@29227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4deee321e3
commit
13aee01e2b
@ -95,10 +95,8 @@ header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
|
|||||||
</head>
|
</head>
|
||||||
<body class="windows wp-core-ui">
|
<body class="windows wp-core-ui">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var win = window.dialogArguments || opener || parent || top;
|
if ( navigator.userAgent.indexOf( 'Mac OS' ) > -1 ) {
|
||||||
|
document.body.className = document.body.className.replace( /windows/, 'macos' );
|
||||||
if ( win && win.tinymce && win.tinymce.isMac ) {
|
|
||||||
document.body.className = document.body.className.replace(/windows/, 'macos');
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user