824 | | editor.document.$.designMode = 'on'; |
825 | | setTimeout( function () |
826 | | { |
827 | | editor.document.$.designMode = 'off'; |
828 | | }, 50 ); |
| 827 | CKEDITOR.tools.tryThese( function () |
| 828 | { |
| 829 | editor.document.$.designMode = 'on'; |
| 830 | setTimeout( function () |
| 831 | { |
| 832 | editor.document.$.designMode = 'off'; |
| 833 | editor.document.getBody().focus(); |
| 834 | }, 50 ); |
| 835 | }, function () |
| 836 | { |
| 837 | // Refresh 'contentEditable' when parent DOM |
| 838 | // tree layout changes may break design mode. (#5782) |
| 839 | editor.document.$.designMode = 'off'; |
| 840 | var body = editor.document.getBody(); |
| 841 | body.setAttribute( 'contentEditable', false ); |
| 842 | body.setAttribute( 'contentEditable', true ); |
| 843 | blinkCursor(); |
| 844 | }) |