- CKEDITOR.tools.tryThese(\r
- function()\r
- {\r
- editor.document.$.designMode = 'on';\r
- setTimeout( function()\r
- {\r
- editor.document.$.designMode = 'off';\r
- if ( CKEDITOR.currentInstance == editor )\r
- editor.document.getBody().focus();\r
- }, 50 );\r
- },\r
- function()\r
- {\r
- // The above call is known to fail when parent DOM\r
- // tree layout changes may break design mode. (#5782)\r
- // Refresh the 'contentEditable' is a cue to this.\r
- editor.document.$.designMode = 'off';\r
- var body = editor.document.getBody();\r
- body.setAttribute( 'contentEditable', false );\r
- body.setAttribute( 'contentEditable', true );\r
- // Try it again once..\r
- !retry && blinkCursor( 1 );\r
- });\r
+ editor.addCss( 'html { height: 100% !important; }' );\r
+ editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1; min-width : 24px; min-height : 24px; }' );\r