internal static IHTMLIFrame CreateEditor() { var edit = new IHTMLIFrame { src = "about:blank" }; edit.style.width = "100%"; edit.style.height = "100%"; edit.style.border = "0"; edit.style.margin = "0"; edit.style.padding = "0"; edit.frameBorder = "0"; edit.border = "0"; edit.WhenDocumentReady( document => { document.WithContent( new XElement("style", "span { color: red; }"), new XElement("div", new XAttribute("style", "margin: 2em;"), new XElement("h1", "powered by jsc"), new XElement("span", "hello world") ) ); document.DesignMode = true; } ); return edit; }
internal static IHTMLIFrame CreateEditor() { var edit = new IHTMLIFrame { src = "about:blank" }; edit.style.width = "100%"; edit.style.height = "100%"; edit.style.border = "0"; edit.style.margin = "0"; edit.style.padding = "0"; edit.frameborder = "0"; edit.border = "0"; edit.WhenDocumentReady( document => { document.WithContent(StockPageDefault.Element); document.DesignMode = true; } ); return edit; }