Font size changed after upgrade from 5.3 to 6.3

Last post 04-21-2009, 4:19 PM by liqiug. 2 replies.
Sort Posts: Previous Next
  •  04-20-2009, 5:10 PM 51286

    Font size changed after upgrade from 5.3 to 6.3

    Hi ,
    I have trouble for upgrade the Cuteeditor from 5.3 to 6.3.
    the font became small after I upgrade it . Please see the details below
     
    Load by Cuteeditor 6.3:

    <span style="font-size: 8px; font-family: verdana;">
    <img id="tick" src="GetContentImage.aspx?image=tick" style="float: right; margin-left: 20px;">
    Don't get caught up with writing audits and analysing data and get behind with your quality system ... keep up with the aged care industry and keep Moving ON.
    </span><br><br>
    <span style="font-size: 8px; font-family: verdana;">
    Moving ON Audits is a unique program which provides aged care facilities with a planned program of surveys and audits. By being a part of Moving ON Audits you are able to
    benchmark with other aged care organisations and objectively assess your quality systems.
    </span><br>


    Load by cuteeditor 5.3
    <span style="font-family: Verdana; font-size: 8pt; color: #000000;">
    <img id="tick" src="GetContentImage.aspx?image=tick" style="float: right; margin-left: 20px;">
    Don't get caught up with writing audits and analysing data and get behind with your quality system ... keep up with the aged care industry and keep Moving ON.
    </span><br><br>
    <span style="font-family: Verdana; font-size: 8pt; color: #000000;">Moving ON Audits is a unique program which provides aged care facilities with a planned program of surveys and audits. By being a part of Moving ON Audits you are able to benchmark with other aged care organisations and objectively assess your quality systems.</span><br>


    Data in Database:
    {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Verdana;}}  \viewkind4\uc1\pard\lang3081\f0\fs16 <image name="tick"/>Don't get caught up with writing audits and analysing data and get behind with your quality system ... keep up with the aged care industry and keep Moving ON. \par  \par  Moving ON Audits is a unique program which provides aged care facilities with a planned program of surveys and audits. By being a part of Moving ON Audits you are able to benchmark with other aged care organisations and objectively assess your quality systems.\par  }  

    Load Code:

    string HTMLOut;
                    ce.LoadRTF((String)DataBinder.Eval(e.Item.DataItem, "WCText"));
                    HTMLOut = URLDetect(ce.XHTML);
                    
                    string search = @"(<\s*resource)\s*part\s*=\s*\""(.*?)\""\s*>(.*?)<\s*/\s*resource\s*>";
                    string replace = "<a href=\"DownloadFile.aspx?pn=$2\">$3</a>";
                    HTMLOut = Regex.Replace(HTMLOut, search, replace, RegexOptions.Multiline);
                    HTMLOut = Regex.Replace(HTMLOut, "\"DownloadFile.aspx[^\"]*?\"", delegate(Match m) { return m.Value.Replace(" ", "_"); }, RegexOptions.Multiline);


                    search = @"(<\s*page)\s*title\s*=\s*\""(.*?)\""\s*>(.*?)<\s*/\s*page\s*>";
                    replace = "<a href=\"RedirectByTitle.aspx?title=$2\">$3</a>";
                    HTMLOut = Regex.Replace(HTMLOut, search, replace, RegexOptions.Multiline);
                    HTMLOut = Regex.Replace(HTMLOut, "\"RedirectByTitle.aspx[^\"]*?\"", delegate(Match m) { return m.Value.Replace(" ", "_"); }, RegexOptions.Multiline);

                    search = @"(<\s*image)\s*name\s*=\s*\""(.*?)\""\s*/\s*>";
                    replace = "<img id=\"$2\" src=\"GetContentImage.aspx?image=$2\"/>";
                    HTMLOut = Regex.Replace(HTMLOut, search, replace, RegexOptions.Multiline);
                    HTMLOut = Regex.Replace(HTMLOut, "\"GetContentImage.aspx[^\"]*?\"", delegate(Match m) { return m.Value.Replace(" ", "_"); }, RegexOptions.Multiline);
                    HTMLOut = Regex.Replace(HTMLOut, "\"GetContentImageStyle.aspx[^\"]*?\"", delegate(Match m) { return m.Value.Replace(" ", "_"); }, RegexOptions.Multiline);


                    XmlDocument doc = new XmlDocument();
                    doc.LoadXml("<div>"+HTMLOut+"</div>");

                    cmd.Connection = conn;
                    cmd.CommandText = "select WCIName, WCIStyle from WebContentImage where WCIWebContentID = @WCID";
                    cmd.Parameters.Add("WCID", SqlDbType.UniqueIdentifier).Value = new Guid(DataBinder.Eval(e.Item.DataItem, "WCID").ToString());
                    rd = cmd.ExecuteReader();
                    while (rd.Read())
                    {
                        XmlNodeList imgNodes = (XmlNodeList)doc.DocumentElement.SelectNodes("//img[@id='"+ rd.GetString(0) +"']");
                        foreach (XmlElement node in imgNodes)
                        {
                            if (!rd.IsDBNull(1))
                                node.SetAttribute("style", rd.GetString(1));
                        }                                                           
                    }
                    rd.Close();

                    divContent.InnerHtml = doc.DocumentElement.InnerXml;
  •  04-21-2009, 4:04 PM 51338 in reply to 51286

    Re: Font size changed after upgrade from 5.3 to 6.3

    It looks like the font is 8pt in Version 5.3 and font is 8px in version 6.3.
     
    Can you try this example?
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-21-2009, 4:19 PM 51339 in reply to 51338

    Re: Font size changed after upgrade from 5.3 to 6.3

    I agree with it , the font changed to 8px in 6.3.

    I have no idea what can I do in http://cutesoft.net/example/editRTF.aspx .
     
    Can I upgrade to 6.3 and without change my database ?
View as RSS news feed in XML