83 | | // Refresh 'contentEditable' otherwise |
84 | | // DOM lifting breaks design mode. (#5560) |
85 | | var body = editor.document.getBody(); |
86 | | body.setAttribute( 'contentEditable', false ); |
87 | | body.setAttribute( 'contentEditable', true ); |
| 83 | // Refresh all editor instances on the page (#5724). |
| 84 | var all = CKEDITOR.instances; |
| 85 | for ( var i in all ) |
| 86 | { |
| 87 | var one = all[ i ]; |
| 88 | if ( one.mode == 'wysiwyg' ) |
| 89 | { |
| 90 | var body = one.document.getBody(); |
| 91 | // Refresh 'contentEditable' otherwise |
| 92 | // DOM lifting breaks design mode. (#5560) |
| 93 | body.setAttribute( 'contentEditable', false ); |
| 94 | body.setAttribute( 'contentEditable', true ); |
| 95 | } |
| 96 | } |