Editor

var ifr = document.getElementById("editorFrame").contentWindow;

var doc = ifr.document;

 

doc.designMode = "On";

doc.contentEditable = true;

doc.canHaveHTML=true

doc.open();

doc.writeln('<html><body></body></html>');

doc.close();

你可能感兴趣的:(html)