Hi,
I'm using code snippet as follows:
When I insert both code snippets, the "Full Report" works correctly, but the problem is with the "Title", where the editor generate it like: <a....></a><h1>....</h1>
Even when I manually change the code in HTML view then switch back to design view, the editor change the code again.
I'm using version 2014.2.724.45
Any idea?
I'm using code snippet as follows:
Title =
string
.Format(
"<a class=\"LeadStory\" href=\"/Report/{0}/{1}\"><h1>{2}</h1></a>"
,
ds.Tables[0].Rows[0][
"report_id"
].ToString(),
aaHelper.Text.StripText.UrlTitle(ds.Tables[0].Rows[0][
"title"
].ToString()),
ds.Tables[0].Rows[0][
"title"
].ToString());
ReadMore =
string
.Format(
"<a class=\"LeadFullReport\" href=\"Report/{0}/{1}\">full report</a>"
,
ds.Tables[0].Rows[0][
"report_id"
].ToString(),
aaHelper.Text.StripText.UrlTitle(ds.Tables[0].Rows[0][
"title"
].ToString()));
RadEditor1.Snippets.Add(
"Lead Title"
, Title);
RadEditor1.Snippets.Add(
"Full Report"
, ReadMore);
Even when I manually change the code in HTML view then switch back to design view, the editor change the code again.
I'm using version 2014.2.724.45
Any idea?