Eugene Wong
Top achievements
Rank 1
Eugene Wong
asked on 11 Oct 2012, 02:02 AM
Hi,
there is an error message pop up "Error while executing filter PdfExportFilter - [object error]" when i open a page using telerik radeditor. This message only appears for that particular content(suspecting is because of the content that causes such error).
after some investigation, i deactivate the contentfilter PDFExportFilter, the message no longer pop up. can i know what is the cause of the error display?
Regards.
there is an error message pop up "Error while executing filter PdfExportFilter - [object error]" when i open a page using telerik radeditor. This message only appears for that particular content(suspecting is because of the content that causes such error).
after some investigation, i deactivate the contentfilter PDFExportFilter, the message no longer pop up. can i know what is the cause of the error display?
Regards.
5 Answers, 1 is accepted
0
Hello,
As you know the content filters of RadEditor, parse and validate the content using regular expressions and DOM methods. If the content is non well formed or contains unsupported tags, attributes, etc this could break the regular expressions and the filter will pop up an error message.
You can validate the problematic content with the W3C validation tool of RadEditor or the online one and check for XHTML errors. You can also start to remove parts of the content until you find the problematic one in it and remove it.
Best regards,
Rumen
the Telerik team
As you know the content filters of RadEditor, parse and validate the content using regular expressions and DOM methods. If the content is non well formed or contains unsupported tags, attributes, etc this could break the regular expressions and the filter will pop up an error message.
You can validate the problematic content with the W3C validation tool of RadEditor or the online one and check for XHTML errors. You can also start to remove parts of the content until you find the problematic one in it and remove it.
Best 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
Eugene Wong
Top achievements
Rank 1
answered on 12 Oct 2012, 01:31 AM
Hi Rumen,
If the PDFExportFilter is being remove from the content filters, does this means that only the exporting of the radeditor content to pdf function will be disabled? It will not affect other functionality right?
Regards.
If the PDFExportFilter is being remove from the content filters, does this means that only the exporting of the radeditor content to pdf function will be disabled? It will not affect other functionality right?
Regards.
0
Hello,
Yes, exactly. The PdfExportFilter filter just adds width attributes and colgroup / col tags to the Table elements so that they can be exported to PDF. If you disable it you will be still able to export the content to PDF without the table elements.
Kind regards,
Rumen
the Telerik team
Yes, exactly. The PdfExportFilter filter just adds width attributes and colgroup / col tags to the Table elements so that they can be exported to PDF. If you disable it you will be still able to export the content to PDF without the table elements.
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
Eugene Wong
Top achievements
Rank 1
answered on 15 Oct 2012, 09:41 AM
Hi Rumen,
What will happen when i set ContentFilters as none value? What will happen to the content?
Regards.
What will happen when i set ContentFilters as none value? What will happen to the content?
Regards.
0
Hi,
When the ContentFilters property is set to None, the editor will not modify the content produced and edited by the browser. You will see that the different browsers produce different content. For example IE will apply bold formatting with a strong tag, Firefox with <b> tag. IE9 will produce tags will lower case letters, but IE6-IE8 with upper case letters.
Greetings,
Rumen
the Telerik team
When the ContentFilters property is set to None, the editor will not modify the content produced and edited by the browser. You will see that the different browsers produce different content. For example IE will apply bold formatting with a strong tag, Firefox with <b> tag. IE9 will produce tags will lower case letters, but IE6-IE8 with upper case letters.
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.