font-size changes

  •  05-15-2008, 2:30 PM

    font-size changes

    Font size got changed after loading rtf file.
    After page is loaded, a rtf file is created by clicking btnSave button. Then
    loaded that file by clicking btnLoad button.
    font-size changed from 20px to 15px.
     
    Please check the following code.
    Thanks
     
     
       protected void Page_Load(object sender, EventArgs e)
        {
            Editor1.Text= "<span style='font-size: 20px; font-family: arial'>test</span><br />";   
        }
     
       protected void btnSave_Click(object sender, EventArgs e)
        {
            Editor1.SaveRTF("r1.rtf");
        }
        protected void btnLoad_Click(object sender, EventArgs e)
        {
            Editor1.LoadRTF("r1.rtf");
        }
View Complete Thread