/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
'<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' +\r
'<head>' +\r
'<style>.' + className + '_container{visibility:hidden}</style>' +\r
+ CKEDITOR.tools.buildStyleHtml( this.css ) +\r
'</head>' +\r
'<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' +\r
' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' +\r
- // It looks strange, but for FF2, the styles must go\r
- // after <body>, so it (body) becames immediatelly\r
- // available. (#3031)\r
- CKEDITOR.tools.buildStyleHtml( this.css ) +\r
'<\/html>';\r
\r
doc.write( data );\r
{\r
var blocks = this._.blocks,\r
block = blocks[ name ],\r
- current = this._.currentBlock,\r
- holder = this.forceIFrame ?\r
- this.document.getById( this.id + '_frame' )\r
- : this._.holder;\r
+ current = this._.currentBlock;\r
\r
- // Disable context menu for block panel.\r
- holder.getParent().getParent().disableContextMenu();\r
+ // ARIA role works better in IE on the body element, while on the iframe\r
+ // for FF. (#8864)\r
+ var holder = !this.forceIFrame || CKEDITOR.env.ie ?\r
+ this._.holder : this.document.getById( this.id + '_frame' );\r
\r
if ( current )\r
{\r