Html changing issue.

Last post 07-02-2010, 2:19 PM by Eric. 8 replies.
Sort Posts: Previous Next
  •  06-29-2010, 2:15 PM 62081

    Html changing issue.

    How can we set cute editor, so that there is neither any HTML formatting, nor any reordering of the attributes within the tags,

    we want the html to look same as it is pasted.

     

    we have already tried  DisableAutoFormatting="true"

     

    as you will see for example, below HTML -

     


            <DIV id=Bodycontainer>
            <P><asp:ImageButton 
    onclick="SaveOrderAndRedirect" ImageUrl="images/btnSave.jpg" id="lnkSubmitOrder" runat="server"></asp:ImageButton></P>
            </DIV>


           

    when pasted in Cute editor is changed to -

     


            <DIV id=Bodycontainer>
            <P><asp:ImageButton
    id=lnkSubmitOrder onclick=SaveOrderAndRedirect ImageUrl="images/btnSave.jpg" runat="server"></asp:ImageButton></P>
            </DIV>

     

  •  06-29-2010, 4:53 PM 62082 in reply to 62081

    Re: Html changing issue.

    "DisableAutoFormatting" is not a property of Cute Editor now.  The html change is browser behavior, we cannot update it.
     
    Regards,
    Eric
  •  06-29-2010, 5:15 PM 62083 in reply to 62082

    Re: Html changing issue.

    But HTML changes within the cute editor,

     

    Let me write in more detail –

     

    When we paste any HTML in cute editor, (in HTML mode)

    Now if we switch to Normal mode and again back to HTML mode,

     

    We see that HTML is changing, or re ordering, we don’t want that to happen,

    Is there any way to stop that?

  •  06-30-2010, 1:26 AM 62100 in reply to 62083

    Re: Html changing issue.

    Hi gurpreet,
     
    It is the browser feature. We can not change it. Sorry for your inconvenience.
     
    Regards,
     
    ken
  •  06-30-2010, 11:16 AM 62141 in reply to 62100

    Re: Html changing issue.


    Could you please explain how the html changing within the cute editor is affected by any browser feature?

     

    Or is there any settings at browser level we can set so as to retain the HTML?

     

    Regards,

    Gurpreet.


  •  06-30-2010, 11:39 AM 62142 in reply to 62100

    Re: Html changing issue.

    Here is one more example -

     

    If we paste the below html in Cute Editor -

     

    <a href=""><img src="banner_01.jpg" alt="test test test" border="0" width="620" height="83"></a>

     

    Now switch to Normal Mode and then back to HTML mode, the above HTML changes to -

     

    <A href=""><IMG src="test test test" src="banner_01.jpg" width=620 border=0></A>

     

    Again switch to Normal Mode and then back to HTML mode, the HTML will now be -

     

    <A href=""><IMG src="test test test" width=620 border=0></A>

     

    This is urgent please help.

     

    Regards,

    Gurpreet.

  •  06-30-2010, 10:18 PM 62150 in reply to 62142

    Re: Html changing issue.

    Hi gurpreet,
     
    I tested the code you provide on demo http://cutesoft.net/example/general.aspx.
     
    I paste the code below into editor html view
     
    <a href=""><img src="banner_01.jpg" alt="test test test" border="0" width="620" height="83"></a>
     
    then switch to normal view and bakc to html view, the coce changed to
     
    <a href=""><img height="83" alt="test test test" src="banner_01.jpg" width="620" border="0" /></a>
     
    It just changes the order of attributes. Please test on the demo, if it works for you, please download the latest version and try again.
     
    Regards,
     
    ken
  •  07-02-2010, 11:39 AM 62250 in reply to 62150

    Re: Html changing issue.


    Is there any way we can control the below -
     
    If the original HTML is -
    <table><tr><td bgcolor="ebebeb" width="30px">&nbsp;</td></tr></table>
     
    after pasting it to the editor, it is changed to -
    <table><tr><td width="30" bgcolor="#ebebeb">&nbsp;</td></tr></table>
     
    Regards,
    Gurpreet.
  •  07-02-2010, 2:19 PM 62251 in reply to 62250

    Re: Html changing issue.

    It's possible if you can write a html filter.
     
    Regards,
    Eric
     
View as RSS news feed in XML