Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <body onload="setTimeout(doTest,0);"> |
michael@0 | 4 | |
michael@0 | 5 | <iframe id="edit" style="display:none;" src=""></iframe> |
michael@0 | 6 | |
michael@0 | 7 | <script> |
michael@0 | 8 | var x=document.getElementById('edit'); |
michael@0 | 9 | function doTest(){ |
michael@0 | 10 | x.style.display='block'; |
michael@0 | 11 | x.contentDocument.body.innerHTML="This is a test"; |
michael@0 | 12 | x.contentDocument.designMode='on'; |
michael@0 | 13 | x.contentDocument.execCommand("selectAll", false, ""); |
michael@0 | 14 | x.contentDocument.execCommand("bold", false, ""); |
michael@0 | 15 | x.contentDocument.execCommand("justifyCenter", false, ""); |
michael@0 | 16 | x.contentWindow.getSelection().removeAllRanges(); |
michael@0 | 17 | document.documentElement.className = ""; |
michael@0 | 18 | } |
michael@0 | 19 | </script> |
michael@0 | 20 | </body> |
michael@0 | 21 | </html> |