The code I\'m trying to use is
data:text/html,
Reference Link:
Conclusion: Please refer to the first link to achieve this as IE not started supporting it.
You can try using the javascript engine to create a similar execution.
From the URL bar:
javascript:window.document.write('<body contenteditable style="font: 2em/1.5 monospace;max-width:60em;margin:0 auto;padding:4em;">');
If you copy and paste you will need to manually type javascript: in front of it since the browser trims that part of on paste.
If you want to execute a new window as an editor then try this:
<script>
function myFunction() {
var myWindow = window.open("", "MyEditorWindow");
myWindow.document.write("<body contenteditable style=\"font: 2em/1.5 monospace;padding:40px;\">");
}
</script>
Check out this jsFiddle example