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

HTML Code Changed...

1 Answer 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Cliff Gibson
Top achievements
Rank 1
Cliff Gibson asked on 03 Oct 2011, 10:58 AM
I have this editor on a page:

<telerik:RadEditor ID="editorPageContent" runat="server" EditModes="HTML"
Width="1000px" Height="550px" BorderStyle="None" Content='<%# Eval("PageContent") %>'
ToolsFile="~/Forms/EditorToolBar/SynopsisTools.xml" ContentFilters="None">
<ImageManager ViewPaths="~/PublicImages" UploadPaths="~/PublicImages" 
DeletePaths="~/PublicImages" EnableImageEditor="true" MaxUploadFileSize="20971520" />
<MediaManager  ViewPaths="~/PublicImages" UploadPaths="~/PublicImages" 
DeletePaths="~/PublicImages"  MaxUploadFileSize="20971520"/>
</telerik:RadEditor>

and when I upload this text:

<div class="hidden">
    <!-- Header -->
    <div id="header">
        <div class="area">
            <ul class="language">
                <li><a href="javascript:LoadPageContent('Home');"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/UK.gif" alt="UK"/></a></li>
                <li><a href="javascript:LoadPageContent('HomeDE');"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/germany.gif" alt="Germany"/></a></li>
            </ul>
        </div>
        <div class="relax"> </div>
        <div class="box">   
            <div class="area">
            <div class="title">
                <span class="gotham-bold">Mundipharma IT Services, Company launch</span>
                <span class="gotham-black">Winter 2011 | Wednesday 30 November to Friday 2 December</span>
            </div>
            <a href="#" class="logotype"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/logotype.gif" alt="MITS Lauch"/></a>
            </div>
        </div>      
    </div>                                     
    <!-- Content -->
    <div id="content">
        <div class="area">
            <div class="main-pic">
                <div class="sidebar ">                      
                    <div class="pos-top"><h1><span>One vision.</span>Be a part of it.</h1></div>
                    <a href="#" class="pos-bottom"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/mundi-pharma.png" alt="mundi pharma"/></a>                        
                </div>
                <div class="relax"> </div>
            </div>
            <div class="main-content">              
                <div class="quote">
                    <img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/left-quote.gif" alt="left quote"/>
                    <span>From outdoor<br/>adventure to glitz and<br/>glamour, hold on tight<br/>as we take you on a<br/>winter wonderland<br/>journey through<br/>Switzerland</span>
                    <img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/right-quote.gif" alt="right-quote"/> 
                    <div class="relax"> </div>
                </div>
                <div class="relax"> </div>
                <ul class="list">
                    <li><a href="javascript:LoadPageContent('FAQ');">Find out more about the event<span class="arrow"> </span></a></li>
                    <li><a href="javascript:openRadWinRegistration();">Register online now to attend the event<span class="arrow"> </span></a></li>
                    <li><a href="javascript:openRadWinDeclineInvite();">I cannot attend the event<span class="arrow"> </span></a></li>         
                </ul>           
            </div>
        </div>
    </div>
</div>

It is displayed as this:

<DIV class=hidden><!-- Header -->
<DIV id=header>
<DIV class=area>
<UL class=language>
<LI><A href="javascript:LoadPageContent('Home');"><IMG alt=UK src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/UK.gif"></A
<LI><A href="javascript:LoadPageContent('HomeDE');"><IMG alt=Germany src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/germany.gif"></A> </LI></UL></DIV>
<DIV class=relax> </DIV>
<DIV class=box>
<DIV class=area>
<DIV class=title><SPAN class=gotham-bold>Mundipharma IT Services, Company launch</SPAN> <SPAN class=gotham-black>Winter 2011 | Wednesday 30 November to Friday 2 December</SPAN> </DIV><A class=logotype href="#"><IMG alt="MITS Lauch" src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/logotype.gif"></A> </DIV></DIV></DIV><!-- Content -->
<DIV id=content>
<DIV class=area>
<DIV class=main-pic>
<DIV class="sidebar ">
<DIV class=pos-top>
<H1><SPAN>One vision.</SPAN>Be a part of it.</H1></DIV><A class=pos-bottom href="#"><IMG alt="mundi pharma" src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/mundi-pharma.png"></A> </DIV>
<DIV class=relax> </DIV></DIV>
<DIV class=main-content>
<DIV class=quote><IMG alt="left quote" src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/left-quote.gif"> <SPAN>From outdoor<BR>adventure to glitz and<BR>glamour, hold on tight<BR>as we take you on a<BR>winter wonderland<BR>journey through<BR>Switzerland</SPAN> <IMG alt=right-quote src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/right-quote.gif"
<DIV class=relax> </DIV></DIV>
<DIV class=relax> </DIV>
<UL class=list>
<LI><A href="javascript:LoadPageContent('FAQ');">Find out more about the event<SPAN class=arrow> </SPAN></A
<LI><A href="javascript:openRadWinRegistration();">Register online now to attend the event<SPAN class=arrow> </SPAN></A
<LI><A href="javascript:openRadWinDeclineInvite();">I cannot attend the event<SPAN class=arrow> </SPAN></A> </LI></UL></DIV></DIV></DIV></DIV>

What is appears to have done is stripped out all the double quotes (") from all the class properties, which when I then insert the content into a web page causes the page not to work...

Any ideas?

Cheers
Cliff

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Oct 2011, 02:45 PM
Hello Cliff,

Please, make sure that the ConvertToXhtml filter is enabled. See this article and live demo for more information:
http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx
and
http://www.telerik.com/help/aspnet-ajax/editor-content-filters.html


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