Content formatting being removed

5 posts, 0 answers
  1. Mark
    Mark avatar
    3 posts
    Member since:
    Jul 2011

    Posted 27 Jul 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14028 posts

    Posted 01 Aug 2011 Link to this post

    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.

  3. Mark
    Mark avatar
    3 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    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

  4. Rumen
    Admin
    Rumen avatar
    14028 posts

    Posted 04 Aug 2011 Link to this post

    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.

  5. Mark
    Mark avatar
    3 posts
    Member since:
    Jul 2011

    Posted 05 Aug 2011 Link to this post

    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
Back to Top