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

ConvertInlineStylesToAttributes for .net 2.0 version of controls?

1 Answer 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Addams England
Top achievements
Rank 1
Addams England asked on 25 May 2012, 08:39 PM
We are still on an older version of the controls for .net 2.0 and cannot upgrade for another month or two.  We need to implement the filtering that ConvertInlineStylesToAttributes does now though.  Could you provide some javascript that would allow us to run this type of cleanup now? 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 May 2012, 02:30 PM
Hello,

The ConvertInlineStylesToAttributes is a complex filter and it is not so easy to be implemented in an earlier builds.

As being an owner of Developer License with subscription you can download the source code of Telerik.Web.UI.dll and implement your own custom content filter using as a base the code of the ConvertInlineStylesToAttributes filter. This filter is located in the \Editor\RadEditor\EditorFiltersManager.js. It also use the convertAttribute, convertBorderAttribute, convertCSSProperty and convertTypeAttribute functions the declarations of which are available in the \Editor\RadEditor\0EditorUtils.js file.

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.
Tags
Editor
Asked by
Addams England
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or