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;