Render to remove the span tag in rad editor place holder

K

kogilar

I don't know to implement the below render code to replace the span tag
in rad ediotr placeholder.
I know there is way but i don't know how? If any one know how to
remove the <span> tag automaicaly generating placeholder control in
IE. please post it.



protected override void Render(System.Web.UI.HtmlTextWriter

output)
{
if ((WebAuthorContext.Current.Mode ==
WebAuthorContextMode.AuthoringReedit)
||(WebAuthorContext.Current.Mode ==
WebAuthorContextMode.AuthoringNew))
{
// catch the output of the original
HtmlPlaceholderControl
TextWriter tempWriter = new StringWriter();
base.Render(new
System.Web.UI.HtmlTextWriter(tempWriter));


string orightml= tempWriter.ToString();


// strip out the span tags here.
string newhtml =
YourRemoveSpanRoutine(orightml);


output.Write(newhtml);
}
else
{
base.Render(output);
}
}


Cheers,
Stefan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top