A Windows Forms based text editor with HTML output problem

“,c,”>”].join(“http://social.msdn.microsoft.com/”)}var c=”body”,e=h[c];if(!e)return setTimeout(q,100);a.P(1);var d=”appendChild”,g=”createElement”,i=”src”,k=h[g](“div”),l=k[d](h[g](“div”)),f=h[g](“iframe”),n=”document”,p;k.style.display=”none”;e.insertBefore(k,e.firstChild).id=o+”-“+j;f.frameBorder=”0″;f.id=o+”-frame-“+j;/MSIE[ ]+6/.test(navigator.userAgent)&&(f[i]=”javascript:false”);f.allowTransparency=”true”;l[d](f);trycatch(s)trycatch(t)a.P(2)};a.l&&setTimeout(q,0)})()}();c[b].lv=”1″;return c[b]}var o=”lightningjs”,k=window[o]=g(o);k.require=g;k.modules=c}({});
window.usabilla_live=lightningjs.require(“usabilla_live”, “//w.usabilla.com/”+buttonId+”.js”);
/*]]>{/literal}*/

  • Question

  • I have downloaded a windows form based text editor with HTML output. By default, the line spacing/height in the editor is too much. So, i try to reduce it using below code:

    doc.body.style.lineHeight = “1px”;

    The code able to reduce the line spacing/height. But when I use button to assign some text into editor, the value will group all together but when I manual typing then it work fine.

    http://social.msdn.microsoft.com/

    Here is the value:

    private void button1_Click(object sender, EventArgs e)
    {
    editor.BodyHtml = “aaa
    bbb
    ccc”;
    }

    Does anyone know how to fix it? I have tried in the web browser with html style. But still cannot.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *