Completely Disable Auto-Formatting of HTML Code

Last post 02-08-2010, 9:17 PM by Adam. 4 replies.
Sort Posts: Previous Next
  •  02-06-2010, 4:57 PM 58561

    Completely Disable Auto-Formatting of HTML Code

    Hi,
     
    The auto formatting feature is buggy, and I'd like to totally disable it. For example, if I type <div style="border:2px solid yellow;">, it changes it to <div style="border-left-color: yellow; ">. This is a bug, plain and simple. It's not "cleaned up", it's changed to something completely different with different output. Also, there's nothing wrong with the original code.
     
    I don't want the bug fixed, because there are many others and I don't have time to wait for them to all be fixed. I simply want to turn the feature off. I don't want one letter of my code automatically changed or "cleaned up" by the editor. Please let me know how to do this.
     
    Thank you.
     
    Regards,
    Jonathan
  •  02-08-2010, 12:11 AM 58570 in reply to 58561

    Re: Completely Disable Auto-Formatting of HTML Code

    By the way, I've already tried the Editor.DisableAutoFormatting property.
     
    (1) It doesn't work. My code is still being modified. Now what?
     
    (2) On your website, it specifically states that the property is obsolete. What has replaced it?
     
    Regards,
    Jonathan
  •  02-08-2010, 10:40 AM 58582 in reply to 58561

    Re: Completely Disable Auto-Formatting of HTML Code

    Waltz123:
    Hi,
     
    For example, if I type <div style="border:2px solid yellow;">, it changes it to <div style="border-left-color: yellow; ">.
     
    This is not changed by the editor. It's the IE behaviour. We don't have the solution to stop it happening right now.

    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

  •  02-08-2010, 2:50 PM 58599 in reply to 58582

    Re: Completely Disable Auto-Formatting of HTML Code

    That's impossible.
     
    (1) I'm not using I.E., I'm using Safari. But I've tried it on other browsers and it's the same. The only difference I notice between browsers is that some change it simply by switching between normal and HTML view, while others only change it when the form reloads after a post. Either way, the "code cleaning up" is clearly a behavior of the software, not the browser.
     
    (2) Browsers do not recognize and amend the contents of form fields. If I use a regular textarea, my html code does not get touched, before, during, or after the form post. This is obviously a process of the application itself. You advertise it as a feature right on your website!!!

    Please remove this feature or provide a way to turn it off. I don't want my tags closed, or my indentation scheme decided for me, or my style properties modified. I just want my code to stay *exactly* as it is!
     
    Jonathan 
  •  02-08-2010, 9:17 PM 58602 in reply to 58599

    Re: Completely Disable Auto-Formatting of HTML Code

    Jonathan,
     
    <div style="border:2px solid yellow;">hello</div>

    We don't have the code to change the above code. It's the browser behaviour.  Right now we don't have the solution to stop it happening.
     
    Cute Editor displays nicely indented code in the HTML mode. This is very convenient and important for the advanced users.  Please note that code indentation is for display only. In the final code, the space between code will be removed.
     
    Please check this example
     

    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