HTML Pasted got updated in Cute Editor

Last post 08-29-2006, 8:18 PM by Adam. 4 replies.
Sort Posts: Previous Next
  •  08-22-2006, 9:59 AM 22026

    HTML Pasted got updated in Cute Editor

    A bug was found in Cute Editor which prevents integrators from simply pasting HTML from Dreamweaver into the HTML view of Cute Editor. It seems like Cute Editor re-processes the HTML entered and breaks it in some cases.

    If you paste this HTML below in the HTML view of Cute Editor and simply save to database. It will not show correctly on the preview site. The HTML code inputed in Cute Editor is modified and not save correctly to the Database.
     
    Example :
     
    <!--BEGIN To delete before posting -->
    <script type="text/javascript" src="http://media.laredoute.fr/intl/PT/pt/refreshes/001/js/scripts.js"></script>
    <script type="text/javascript" src="http://media.laredoute.fr/intl/PT/pt/refreshes/001/js/flashobject.js"></script>
    <!--END To delete before posting -->
    <script language="javascript"> 
    function ChangeUrl(aspnetForm)
    {location.href = aspnetForm.categorie.options[aspnetForm.categorie.selectedIndex].value;}
    </script>
    <table width="778" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top">
          <table width="592" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="http://minnie1pt.francenet.fr/update3/images/best_woman_1.jpg" width="320" height="155"></td>
            <td width="592"><img src="http://minnie1pt.francenet.fr/update3/images/best_2_fem.jpg" width="272" height="155"></td>
            </tr>
          <tr>
            <td><img src="http://minnie1pt.francenet.fr/update3/images/best_woman_3.jpg" width="320" height="75"></td>
            <td><img src="http://minnie1pt.francenet.fr/update3/images/best_woman_4.jpg" width="272" height="75"></td>
            </tr>
          <tr>
            <td><img src="http://minnie1pt.francenet.fr/update3/images/best_woman_5.jpg" width="320" height="40"></td>
            <td background="http://minnie1pt.francenet.fr/update3/images/best_6.jpg"><select  name="categorie" onChange="ChangeUrl(aspnetForm)" style="font-family: verdana, arial;font-size:11px;" id="cat">
              <option selected>Categoria...</option>
              <option value="/PT/pt/category.aspx?categoryid=22110533&opeco=MULHER:ZS1:MELHORES-VENDAS">Casacos & Blusões</option>
              <option value="/PT/pt/category.aspx?categoryid=22110639&opeco=MULHER:ZS1:MELHORES-VENDAS">Vestidos & Saias</option>
              <option value="/PT/pt/category.aspx?categoryid=22110761&opeco=MULHER:ZS1:MELHORES-VENDAS">Calçado & Acessórios</option>
              <option value="/PT/pt/category.aspx?categoryid=22110890&opeco=MULHER:ZS1:MELHORES-VENDAS">Camisolas & Camisas</option>
              <option value="/PT/pt/category.aspx?categoryid=22110984&opeco=MULHER:ZS1:MELHORES-VENDAS">Calças & Bermudas</option>
            </select></td>
            </tr>
        </table></td>
        <td width="8">&nbsp;</td>
        <td width="178"><a href="http://www.laredoute.pt/PT/pt/ListPages/ListPageTemplate5.aspx?brand=TAILLISSIME" target="_top"><img src="http://minnie1pt.francenet.fr/update3/images/PTtailli180x270.jpg" width="180" height="270" border="0"></a></td>
      </tr>
    </table>


  •  08-23-2006, 10:20 PM 22087 in reply to 22026

    Re: HTML Pasted got updated in Cute Editor

    smitaswaika,
     
    Can you explain this issue in more details?
     
    If you mean CutEditor automatically remove the javaScript and you want to keep javaScript in your code, please set EnableStripScriptTags to false.
     
    Editor.EnableStripScriptTags Property
    Specifies whether to remove inject script before write the string into the db. When this property is set to true (the default) Cute Editor strips all script elements and script contents from the html.
     
    This property can only be set in the code.
     
    <CE:Editor id="Editor1" runat="server" EnableStripScriptTags="false"></CE:Editor>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-24-2006, 1:10 PM 22096 in reply to 22087

    Re: HTML Pasted got updated in Cute Editor

    Thanks for youe response Adam. I was eagerly waiting for it but unfortunately the solution you gace doesn't help me. Here's the scenario :

    1. Take this block of HTML below and do Ctrl-v on HTML Tab in FireFox and See in Normal Mode.
    2. Now Repeat Step 1 with same below HTML in IE and check again in normal mode.
    3. Compare Firefox normal view and IE normal view, you will see the difference and understand what I am saying. Our users are using FireFox so its a big issue for them as it updates the HTML pasted when you save to Database. Preview is not as expected.
    But in IE it works fine.

    I checked in forums that you suggested to disableautoformatting but its didn't help mw as its browser related issue I guess. Plese help us.

    <!--BEGIN To delete before posting -->
    <script type="text/javascript" src="http://media.laredoute.fr/intl/PT/pt/refreshes/001/js/scripts.js"></script>
    <script type="text/javascript" src="http://media.laredoute.fr/intl/PT/pt/refreshes/001/js/flashobject.js"></script>
    <!--END To delete before posting -->
    <script language="javascript"> 
    function ChangeUrl(aspnetForm)
    {location.href = aspnetForm.categorie.options[aspnetForm.categorie.selectedIndex].value;}
    </script>
    <table width="778" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top">
          <table width="592" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="http://images.redcatsusa.com/images/site_images/lanebryant/9243_tabOff.gif" width="320" height="155"></td>
            <td width="592"><img src="http://minnie1pt.francenet.fr/update3/images/best_2_fem.jpg" width="272" height="155"></td>
            </tr>
          <tr>
            <td><img src="http://images.redcatsusa.com/images/site_images/lanebryant/9243_tabOff.gif" width="320" height="75"></td>
            <td><img src="http://images.redcatsusa.com/images/site_images/lanebryant/9243_tabOff.gif" width="272" height="75"></td>
            </tr>
          <tr>
            <td><img src="http://images.redcatsusa.com/images/site_images/lanebryant/9243_tabOff.gif" width="320" height="40"></td>
            <td background="http://images.redcatsusa.com/images/site_images/lanebryant/9243_tabOff.gif"><select  name="categorie" onChange="ChangeUrl(aspnetForm)" style="font-family: verdana, arial;font-size:11px;" id="cat">
              <option selected>Categoria...</option>
              <option value="/PT/pt/category.aspx?categoryid=22110533&opeco=MULHER:ZS1:MELHORES-VENDAS">Casacos & Blusões</option>
              <option value="/PT/pt/category.aspx?categoryid=22110639&opeco=MULHER:ZS1:MELHORES-VENDAS">Vestidos & Saias</option>
              <option value="/PT/pt/category.aspx?categoryid=22110761&opeco=MULHER:ZS1:MELHORES-VENDAS">Calçado & Acessórios</option>
              <option value="/PT/pt/category.aspx?categoryid=22110890&opeco=MULHER:ZS1:MELHORES-VENDAS">Camisolas & Camisas</option>
              <option value="/PT/pt/category.aspx?categoryid=22110984&opeco=MULHER:ZS1:MELHORES-VENDAS">Calças & Bermudas</option>
            </select></td>
            </tr>
        </table></td>
        <td width="8">&nbsp;</td>
        <td width="178"><a href="http://www.laredoute.pt/PT/pt/ListPages/ListPageTemplate5.aspx?brand=TAILLISSIME" target="_top"><img src="http://images.redcatsusa.com/images/site_images/lanebryant/9243_tabOff.gif" width="180" height="270" border="0"></a></td>
      </tr>
    </table>

  •  08-25-2006, 4:24 PM 22116 in reply to 22096

    Re: HTML Pasted got updated in Cute Editor

    Please Respond if you ahve a quick fix in code or do we need to wait for your next major release.
    Thanks

  •  08-29-2006, 8:18 PM 22171 in reply to 22116

    Re: HTML Pasted got updated in Cute Editor

    smitaswaika,
     
    I know the problem now, thanks for pointing it out.
     
    We will resolve this issue in the coming new version.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML