I have the following problem when using compatibility mode in IE9 (so possibly an IE7 problem).
If you paste the following text into the HTML view:
<p>This<o:p></o:p></p>
<p>Is<o:p></o:p></p>
<p>Broken<o:p></o:p></p>
Click design and it looks as expected, however then click html and following html is created:
This<o:p _rdeditor_exists="1"></o:p>Is<o:p _rdeditor_exists="1"></o:p>Broken<o:p _rdeditor_exists="1"></o:p>
Which has removed all <p> tags. This doesn't happen in Chrome, Firefox, Opera, or IE9 in standard mode.
Thanks.
If you paste the following text into the HTML view:
<p>This<o:p></o:p></p>
<p>Is<o:p></o:p></p>
<p>Broken<o:p></o:p></p>
Click design and it looks as expected, however then click html and following html is created:
This<o:p _rdeditor_exists="1"></o:p>Is<o:p _rdeditor_exists="1"></o:p>Broken<o:p _rdeditor_exists="1"></o:p>
Which has removed all <p> tags. This doesn't happen in Chrome, Firefox, Opera, or IE9 in standard mode.
Thanks.
6 Answers, 1 is accepted
0
Hi,
Please, put the following functions under RadEditor's declaration:
Greetings,
Rumen
the Telerik team
Please, put the following functions under RadEditor's declaration:
<telerik:RadEditor ID=
"RadEditor1"
runat=
"server"
/>
<script type=
"text/javascript"
>
Telerik.Web.UI.RadEditor.prototype._markExistingEmptyParagraphs =
function
(content) {
return
content;
}
Telerik.Web.UI.RadEditor.prototype._checkForBrokenParagraphs =
function
() {
return
false
;
}
Telerik.Web.UI.RadEditor.prototype._fixBrokenParagraphs =
function
(content) {
return
content;
}
</script>
Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Stuart
Top achievements
Rank 1
answered on 23 Oct 2012, 09:55 AM
Hi,
Thanks but that fix didn't change anything, I am still experiencing the same issue.
This is with 2012 Q3 controls and IE9 (9.0.8112.16241) running in compatibility mode.
Thanks but that fix didn't change anything, I am still experiencing the same issue.
This is with 2012 Q3 controls and IE9 (9.0.8112.16241) running in compatibility mode.
0
Hi,
The issue is logged for fixing in our bug tracking system. Here is its PITS item.
You can fix it currently by disabling the ConvertToXhtml filter using the DisableFilter server method of RadEditor:
RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml);
Kind regards,
Rumen
the Telerik team
The issue is logged for fixing in our bug tracking system. Here is its PITS item.
You can fix it currently by disabling the ConvertToXhtml filter using the DisableFilter server method of RadEditor:
RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml);
Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Stuart
Top achievements
Rank 1
answered on 26 Oct 2012, 08:57 AM
That fixed it, thank you.
0
Madhu Palakurthi
Top achievements
Rank 1
answered on 02 Apr 2013, 03:35 AM
Hi,
I have a content is coming from DB like this.
I am assigning above value in to radeditor that inside in the grid. ( radeditor has placed inside grid ).
Assign DB content to Radeditor here :
I have added RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml) before sending into editor content, even though it's showing same problem at reading from radeditor to string.
Reading editor body content here .. ( getting problem here )
Message variable is getting below value :
It should be like this .. but different char's are coming to my email.
How can i solve this problem ?
Thanks in advance ..
I have a content is coming from DB like this.
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-family: calibri; font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
>Dear Sir / Madam, <
o:p
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
><
o:p
><
span
style
=
"font-family: calibri;"
> </
span
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-family: calibri; font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
>We are pleased to attach the Insurance Hold Cover confirmation and <
span
style
=
"color: #000000;"
>placement slip[s] for your</
span
> attention. <
o:p
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
><
o:p
><
span
style
=
"font-family: calibri;"
> </
span
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-family: calibri; font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
>Should there be any changes, please advise us within 7 days from the inception date of your insurance.<
o:p
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
><
o:p
><
span
style
=
"font-family: calibri;"
> </
span
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
><
o:p
><
span
style
=
"font-family: calibri;"
> </
span
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-family: calibri; font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
>Thank you<
o:p
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
><
o:p
><
span
style
=
"font-family: calibri;"
> </
span
></
o:p
></
span
></
p
>
<
p
style
=
"line-height: normal; margin: 0in 0in 0pt;"
class
=
"MsoNormal"
><
span
style
=
"font-size: 9pt; mso-bidi-font-family: calibri;"
lang
=
"EN-GB"
><
o:p
><
span
style
=
"font-family: calibri;"
> </
span
></
o:p
></
span
></
p
>
<
span
style
=
"line-height: 115%; font-family: 'calibri','sans-serif'; font-size: 9pt; mso-fareast-font-family: simsun; mso-ansi-language: en-gb; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa; mso-bidi-font-weight: bold;"
lang
=
"EN-GB"
></
span
>
I am assigning above value in to radeditor that inside in the grid. ( radeditor has placed inside grid ).
<
telerik:RadEditor
ID
=
"Message"
runat
=
"server"
BorderStyle
=
"None"
BorderWidth
=
"0px"
ContentAreaMode
=
"Div"
BackColor
=
"White"
EditModes
=
"Design,Preview"
Height
=
"400"
SkinID
=
"DefaultSetOfTools"
StripAbsoluteAnchorPaths
=
"true"
StripFormattingOnPaste
=
"All"
Width
=
"700px"
> />
Assign DB content to Radeditor here :
I have added RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml) before sending into editor content, even though it's showing same problem at reading from radeditor to string.
Dim radEditor As RadEditor = DirectCast(usercontrol.FindControl("Message"), RadEditor)
If radEditor IsNot Nothing Then
radEditor.DisableFilter(EditorFilters.None)
End If
MessageTextBox.Content = Content
Reading editor body content here .. ( getting problem here )
Dim Message As String = CType(editedItem.FindControl("Message"), RadEditor).Content
Message variable is getting below value :
Dear Sir / Madam, <?
xml:namespace
prefix
=
o
/><
o:p
></
o:p
>
<
o:p
> </
o:p
>
We are pleased to attach the Insurance Hold Cover confirmation and placement slip[s] for your attention. <
o:p
></
o:p
>
<
o:p
> </
o:p
>
Should there be any changes, please advise us within 7 days from the inception date of your insurance.<
o:p
></
o:p
>
<
o:p
> </
o:p
>
<
o:p
> </
o:p
>
Thank you<
o:p
></
o:p
>
<
o:p
> </
o:p
>
<
o:p
> </
o:p
>
It should be like this .. but different char's are coming to my email.
Dear Sir / Madam,
We are pleased to attach the Insurance Hold Cover confirmation and placement slip[s] for your attention.
Should there be any changes, please advise us within 7 days from the inception date of your insurance.
Thank you
How can i solve this problem ?
Thanks in advance ..
0
Hi,
The <o:p> </o:p> tags are MS Office tags for new lines and they could appear in RadEditor if the user pastes content from Word /Outlook or such content is loaded from another location. RadEditor do not produce such tags.
What you can do is to strip the <o:p> tags on submit using the solution provided in this help article: Cleaning Word Formatting On Page Load And On Submit.
Kind regards,
Rumen
the Telerik team
The <o:p> </o:p> tags are MS Office tags for new lines and they could appear in RadEditor if the user pastes content from Word /Outlook or such content is loaded from another location. RadEditor do not produce such tags.
What you can do is to strip the <o:p> tags on submit using the solution provided in this help article: Cleaning Word Formatting On Page Load And On Submit.
Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.