HTML Auto Correction

Last post 08-10-2009, 6:44 PM by mgeiser. 2 replies.
Sort Posts: Previous Next
  •  08-05-2009, 6:45 PM 54530

    HTML Auto Correction

    I have notice that on blur from Normal view the editor goes through and tries to cleanup markup placed in the editor. However it does not do that HTML mode. The issue is we are using this product in an email blaster application at the office and our boss pastes in emails and random HTML and sends that to customers.
     
    In some cases when the editor finds an markup problem it tries to auto correct itself  and will alter the way the HTML is displayed. So my question is there a way to turn that feature off so the markup does not get "messed up" as my boss is putting it.
     
    Thanks.
  •  08-10-2009, 3:41 PM 54621 in reply to 54530

    Re: HTML Auto Correction

    mgeiser,
     
    CuteEditor has the code to remove javascript automatically, but it doesn't have code to auto clean up the html code. Most of the above cleanups are done by browser.
     
    For example:
     
    <div style="color:red">Hello Worls</div> will work in Firefox.
     
    But
     
    <div style="colorR:red">Hello Worls</div> will not work in Firefox. And the code will be cleaned automatically.

    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-10-2009, 6:44 PM 54623 in reply to 54621

    Re: HTML Auto Correction

    Ok... We found a work around to make it not do so doing what I described in my first post.  And we have tested this in multiple browsers. Because there is a workaround I have a hard time believing it is a browser function over a function of your control. It happens when focus is removed, so an onblur event. And we also found a PHP member variable in your CuteEditor class speaking to disabling the auto correct feature; this suggests to me that it was a feature of your control. Now in various forums we found that particular variable has been depricated, but the function seems to still live on.
     
    So what we are looking for is where in the javascript or PHP we can look to disable this feature. It is definitely in your code base, you may need to consult a developer on the PHP version of the project for the answer. But it is most definitely not a function of the browser, browsers do not alter textual input from a paste, it only intreprets it differently for display between browsers.
     
     
View as RSS news feed in XML