TinyMCE: don't access the parent window when opening the (iframe based) Help/Keyboard Shortcuts modal. Fixes #20094.
git-svn-id: https://develop.svn.wordpress.org/trunk@29449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78c928ad44
commit
d6d00167a6
@ -95,9 +95,7 @@ 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 ) {
|
||||||
|
|
||||||
if ( win && win.tinymce && win.tinymce.isMac ) {
|
|
||||||
document.body.className = document.body.className.replace( /windows/, 'macos' );
|
document.body.className = document.body.className.replace( /windows/, 'macos' );
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user