This is a migrated thread and some comments may be shown as answers.

HTML markup validation for Rad Editor

3 Answers 147 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
mahavir
Top achievements
Rank 1
mahavir asked on 16 May 2011, 09:55 AM
Hi,

We are using Teleric Rad Editor for contnet areas in SHarePoint 2007.
 
While editing Rad Editpr HTML content, if the HTML markup is not properly formed, the editor doesnt give any messages for malformed HTML markup.
 
We are planning to use a custom button there to validate the HTML and specify the errors if any. This button internally will call a web service or use some tool on the server, pass the HTML content to it and shows the errors/messages if any returned from the service/tool.

Is there any add-on or something Telerik provides for Rad Editor for HTML markup validation?

If not, can you please suggest us some tool/web service which we can use with Rad Editor? For some security reasons we do not want to use validator.w3c.org web service. Please suggest us some other web service or tool which suites rad editor more. Also it would be great help if you can tell us what steps we can follow to achieve this customization.

Regards,
Mahavir

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 17 May 2011, 08:34 AM
Hello mahavir,

Check the default demo of RadEditor for ASP.NET AJAX http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx. In it the editor has (w3c) XHTML Validator button (check the following screen shot http://screencast.com/t/ARIAotWGK). In order to add this tool review the following online help article: Add/Remove tools from the toolbar.

Greetings,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
mahavir
Top achievements
Rank 1
answered on 17 May 2011, 10:18 AM
Hi Stanimir,

Thanks for the reply and the info.
 
While this is a great tool, as i had mentioned in my initial post, for some security reasons we dont wnat to use W3C web service to validate the content. So while the user experience and user interface should be exactly similar to what it is in the demo but at the backend we need some local utility/tool avaialbe on the server (not a web srvice, as in that case it will be an external entity and we will have to pass data to it), which will validate the the content.

Is there any free tool or codebase we can refer to create our own internal web service to validate the HTML markup? If its a tool, there need to be a posibility to send the editor content to that tool by presing that validate button on rad editor design pane, and the tool then should send back the results to rad editor. If its code base, it will help if the codebase is .NET compatible.

Thanks in advance,
Mahavir
0
Stanimir
Telerik team
answered on 18 May 2011, 07:26 AM


Hi Mahavir,

I can point you to resources where is explained how to add custom tools in RadEditor for MOSS:Add Custom Buttons, Add Custom DropDown, Add Custom Dialog, Modifying RadEditor's built-in dialogs. However I can not help you with the exact implementation of your custom solution.


Greetings,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
WebParts for SharePoint
Asked by
mahavir
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
mahavir
Top achievements
Rank 1
Share this question
or