In the ASP.NET version of the editor I used:
ConvertTagsToLower="true"
ConvertFontToSpan="true"
I can't find these is this version. There was an example of using converttoxhtml="true", but that doesn't appear to be supported being that is doesn't lowercase the tags...etc...and I don't see the property available in code.
ConvertTagsToLower="true"
ConvertFontToSpan="true"
I can't find these is this version. There was an example of using converttoxhtml="true", but that doesn't appear to be supported being that is doesn't lowercase the tags...etc...and I don't see the property available in code.
13 Answers, 1 is accepted
0
Hi Arich,
RadEditor "Prometheus" produces by default XHTML content.
The filters that the ConvertTagsToLower, ConvertFontToSpan and ConvertToXhtml properties run are enabled by default in RadEditor "Prometheus", that's why we decided to remove these properties from the Prometheus editor.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
RadEditor "Prometheus" produces by default XHTML content.
The filters that the ConvertTagsToLower, ConvertFontToSpan and ConvertToXhtml properties run are enabled by default in RadEditor "Prometheus", that's why we decided to remove these properties from the Prometheus editor.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
arich
Top achievements
Rank 1
answered on 29 Nov 2007, 03:24 PM
That's strange. The example I have, it's converting "span"s to "FONT"s and it's capitalizing all my tags. What am I doing wrong?
0
arich
Top achievements
Rank 1
answered on 29 Nov 2007, 03:27 PM
I see what's up. I'm looking at the html in the RadEditorHTMLInspector - that output shows non-xhtml markup.
0
Hi,
Indeed, the Real Time HTML module is displaying the content as it is supplied by the browser - if we validate the content in that module this will decrease the editor's performance. To see how the content is outputted through the RadEditor's XHTML filters you should switch to Html mode or submit the content and see how it is saved in your database or external file.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Indeed, the Real Time HTML module is displaying the content as it is supplied by the browser - if we validate the content in that module this will decrease the editor's performance. To see how the content is outputted through the RadEditor's XHTML filters you should switch to Html mode or submit the content and see how it is saved in your database or external file.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
SamVanity
Top achievements
Rank 2
answered on 06 Feb 2008, 01:49 PM
what if I don't want to convert content to XHTML? I want to use the editor in a forum and don't want XHTML output.
0
Hi Sam,
You can disable the ConvertToXhtml client-filter of RadEditor "Prometheus" with the following code:
<script type="text/javascript">
function onClientLoad (editor)
{
editor.get_FiltersManager().set_enableXhtmlFilter(false);
}
</script>
<telerik:RadEditor OnClientLoad="onClientLoad" ID="RadEditor1" runat="server"></telerik:RadEditor>
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can disable the ConvertToXhtml client-filter of RadEditor "Prometheus" with the following code:
<script type="text/javascript">
function onClientLoad (editor)
{
editor.get_FiltersManager().set_enableXhtmlFilter(false);
}
</script>
<telerik:RadEditor OnClientLoad="onClientLoad" ID="RadEditor1" runat="server"></telerik:RadEditor>
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
SamVanity
Top achievements
Rank 2
answered on 05 Mar 2008, 03:08 PM
how can I make it so that it does not produce
<span style="font-size: 18pt;">text!!</span>
but
<font size="5">text!!</font>
instead?
<span style="font-size: 18pt;">text!!</span>
but
<font size="5">text!!</font>
instead?
0
Hello Sam Van,
This conversion is done by the ConvertFontToSpan client filter of RadEditor. You can disable it with the following code:
<script type="text/javascript">
function onClientLoad (editor)
{
var filter = editor.get_FiltersManager();
filter.getFilterByName("ConvertFontToSpanFilter").Enabled = false;
}
</script>
<telerik:RadEditor OnClientLoad="onClientLoad" ID="RadEditor1" runat="server"></telerik:RadEditor>
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
This conversion is done by the ConvertFontToSpan client filter of RadEditor. You can disable it with the following code:
<script type="text/javascript">
function onClientLoad (editor)
{
var filter = editor.get_FiltersManager();
filter.getFilterByName("ConvertFontToSpanFilter").Enabled = false;
}
</script>
<telerik:RadEditor OnClientLoad="onClientLoad" ID="RadEditor1" runat="server"></telerik:RadEditor>
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
N
Top achievements
Rank 1
answered on 03 Apr 2008, 07:06 AM
Re:
To see how the content is outputted through the RadEditor's XHTML filters you should switch to Html mode...
I need to get the XHTML content on the client-side. Is it possible to programmatically switch the RadEditor to HTML mode via Javascript (so it processes the content via the Xhtml filters) and then get the content displayed in Html mode?
Cheers,
Nuri
To see how the content is outputted through the RadEditor's XHTML filters you should switch to Html mode...
I need to get the XHTML content on the client-side. Is it possible to programmatically switch the RadEditor to HTML mode via Javascript (so it processes the content via the Xhtml filters) and then get the content displayed in Html mode?
Cheers,
Nuri
0
N
Top achievements
Rank 1
answered on 03 Apr 2008, 07:44 AM
I'm sorry, I should be more clear . I use one instance of radEditor on the page to edit multiple <textarea> fields, each of which have a pencil icon beside them. When the pencil icons are clicked, a Javascript function that shows the editor and loads the content is run. Another function saves the content back into the relevent <textarea> and hides the editor. This is all done on the client.
I think I may have worked out how to get the XHTML on the client, but please confirm.
To ensure that the XHTML filter runs whenever you save the content back into the <textarea>, you need to first set it to design mode (1) if it was already in HTML mode (2) from a previous call, like this:
I think I may have worked out how to get the XHTML on the client, but please confirm.
To ensure that the XHTML filter runs whenever you save the content back into the <textarea>, you need to first set it to design mode (1) if it was already in HTML mode (2) from a previous call, like this:
function saveHtml(myTextarea) {
if(editor.get_Mode()==2){
editor.set_Mode(1)
}
editor.set_Mode(2);
myTextarea.value= editor.get_html();
editor.set_Mode(1);
}
Is this the recommended way to do it?
Cheers,
Nuri
0
Hi Nuri,
Your solution looks fine and my suggestion is to go ahead and use it if it works as expected on your side.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Your solution looks fine and my suggestion is to go ahead and use it if it works as expected on your side.
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Becky
Top achievements
Rank 1
answered on 10 Apr 2008, 06:06 PM
I need to turn off the xhtml filter to retain u tags, but I get an error when I try the suggested javascript. "Exception while executing client even OnClientLoad Error:Object doesn't support this property or method." Any other suggestions?
0
Hi Becky,
Please, upgrade your project to the latest Futures build of RadEditor "Prometheus", which offer a new server-side method named DisableFilter which will allow you to disable one by one the editor's client filters.
Here is an example how to disable the ConvertFontToSpan and FixUIBoldItalic filters:
RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan);
RadEditor1.DisableFilter(EditorFilters.FixUlBoldItalic);
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, upgrade your project to the latest Futures build of RadEditor "Prometheus", which offer a new server-side method named DisableFilter which will allow you to disable one by one the editor's client filters.
Here is an example how to disable the ConvertFontToSpan and FixUIBoldItalic filters:
RadEditor1.DisableFilter(EditorFilters.ConvertFontToSpan);
RadEditor1.DisableFilter(EditorFilters.FixUlBoldItalic);
Best regards,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
