I am trying to use the html code generated by the RichTextEditor to embed it in a webpage and I have a problem with the style that the RichtTextEditor generates.
For example an simple "Hello World" creates the html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ><html xmlns=><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">p { margin-top: 0px;margin-bottom: 0px;line-height: 1.15; } body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; } .Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; } .TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; } </style></head><body><p class="Normal ">Hello World</p></body></html>
This html code can not be embedded on any web since it is generating styles for <body> and <p> tags. This causes the style sheet itself to change from the original page.I need a simpler code, I would need you to not create any style for the general tags of a web. And just create styles for your own classes as you already do by putting some of the text in bold:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ><html xmlns=><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">p { margin-top: 0px;margin-bottom: 0px;line-height: 1.15; } body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; } .Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; } .TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; } .s_6C8EFA9D { telerik-style-type: local;font-weight: bold; } </style></head><body><p class="Normal ">Hello <span class="s_6C8EFA9D">World</span></p></body></html>
Is there any way to do it?
Regards.
