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

Content formatting being removed

4 Answers 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 27 Jul 2011, 03:56 PM
Hi All,

We are using the aspdotnetstorefront system which has a rad editor as part of its admin system for the saving content.

We have been supplied some javascript when we paste this into the editor and save it to the system, on it's return the javascript block has a lot of the line breaks and some white space removed.

When this is used on the front end of the site it doesn't work because of the new formatting given to the javascript.

I have added contentfilters, stripformattingonpaste and stripformattingoptions.

<tcontrol:RadEditor runat="server" AllowScripts="true" ContentFilters="None" StripFormattingOnPaste="NoneSupressCleanMessage" StripFormattingOptions="NoneSupressCleanMessage" RadControlsDir="rad" id="radDescription">

However these still allow the javascript to be condensed and on some of the settings it even goes as far as allowing the javascript to render dynamic content to the radeditor box.

Does anybody have any advice which they can share?

Many thanks,

Mark

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Aug 2011, 12:54 PM
Hi Mark,

Are you able to reproduce the problem in the Built-in Content Filters by disabling the filters and switching between the HTML and Design modes? Do you experience this problem with the latest version 2011.2 712 of RadEditor?

Could you please provide some test JavaScript code which I can test and reproduce the problem?

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Mark
Top achievements
Rank 1
answered on 01 Aug 2011, 02:38 PM
Hi Rumen,

I have gone to the Built-In Content Filters page and deselected all filters.

If I past in my code and then click Set Built In Filters a similar thing happens to my code. It seems to render some of the dynamic javascript and save the html generated. Though on this version it doesn't appear to remove the the line breaks, which is different to our version. see images original.png and rendered-version.png

Also I have noticed that if I paste the code in and just click between html and design, some of the opening angle brackets (<) are converted to (&amp;lt;) - see image adjusted-tags.png

If I right click for the properties of our Telerik.Web.UI.dll it says Product Version 2008.03.1314.35. Is it possible to get a later version of this dll as? As it came as part of the system we bought, http://www.aspdotnetstorefront.com/

Is it possible for you to send me your email address and I shall send you a javascript file with the code in. I am reluctant to past it on here as it contains some admin ID's?

Many thanks for your help,

Mark

0
Rumen
Telerik team
answered on 04 Aug 2011, 09:53 AM
Hello Mark,

Version 2008.03.1314.35 is very old and does not support the modern browsers IE9, Firefox 5, etc. The latest build 2011.2.712 offers multiple new features and bug fixes and it is recommended to upgrade. You can ask the developers of www.aspdotnetstorefront whether they have a license and build of their product which includes the latest Telerik.Web.UI.dll assembly.

You can send the requested HTML and JS markup to clientservice@telerik.com. I will check it and research the problem in the latest version.

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Mark
Top achievements
Rank 1
answered on 05 Aug 2011, 10:05 AM
Hi Rumen,

Thanks for the reply.

We have contacted the developers as aspdotnetstorefront to see if they have a more up-to-date release, but have been told what we have is the latest.

I have managed to resolve the issue with the Javascript breaking when it is reformatted by adjusting some of the syntax on the code which we were supplied.

Many thanks for your help with this.

Kind Regards,

Mark
Tags
Editor
Asked by
Mark
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mark
Top achievements
Rank 1
Share this question
or