Editor changes or removes colors from inline style

Last post 07-25-2008, 2:40 PM by vc3_richard. 4 replies.
Sort Posts: Previous Next
  •  07-15-2008, 1:36 PM 42237

    Editor changes or removes colors from inline style

    Version: 6.0

    Our usage of the CuteEditor is as follows:
     
    1) An underlying page has the html to be edited.
    2) The CuteEditor is launched in a new browser window.
    3) The new browser window calls javascript on the opening page to retrieve and populate the CuteEditor control (document.all.Editor1.value = "the html retrieved from the underlying page".
    4) When editing is complete and the user closes the CuteEditor window, javascript writes the contents to the opening page.
     
     
     
    Our problem is as follows:
    The editor removes colors from inline styles.



    Example:

    1) The following html is entered into the CuteEditor:
     <p style="color: #800000">This is a test.</p>

    2) This html is saved the the opening page correctly.

    3) The CuteEditor is reopened to edit this text and the following html is present:
     <p>This is a test.</p>
    Notice the removal of the style tag.
     
    I have verified that at step 3 in the example, the correct html is being set in the CuteEditor. It appears that the CuteEditor initialization that takes place when IE_Loader is executed is removing the style tag. I have also found that certain colors do not trigger the behaviour. For example, named colors (i.e. red) or various rgb values (i.e. c0c0c0) are unaffected.

    Please let me know what we can do to prevent CuteEditor from removing certain colors from inline styles.

     
     
  •  07-17-2008, 2:23 AM 42281 in reply to 42237

    Re: Editor changes or removes colors from inline style

    vc3_richard,
     
    It's very strange.
     
    Can you download the version 6.1 then try again?
     
    Download:
     
     
    Demo:
     
     
    Keep me posted
     

    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

  •  07-17-2008, 7:14 AM 42290 in reply to 42281

    Re: Editor changes or removes colors from inline style

    Adam,
     
    I downloaded 6.1 and see the same behaviour.
     
    A seemingly related symptom, we have also found that if there is a color set in a font tag, that for certain colors, each time the html is opened in the editor, one of the characters in the rgb string will be removed. This continues until there are only two charcters left in the rgb string at which point, the truncation will stop.
     
    For example,
    Initial text: <font color="#0000ff">Test</font>
    Editor pass #1: <font color="#000ff">Test</font>
    Editor pass #2: <font color="#00ff">Test</font>
    Edtior pass #3: <font color="#0ff">Test</font>
    Editor pass #9: <font color="#ff">Test</font>
     
    Let me know what you think.
     
    Thanks,
    Richard
  •  07-17-2008, 1:45 PM 42299 in reply to 42290

    Re: Editor changes or removes colors from inline style

    Richard,

    I cannot reproduce this issue. Is your site online so you can provide an online demo?


    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

  •  07-25-2008, 2:40 PM 42550 in reply to 42299

    Re: Editor changes or removes colors from inline style

    Our site is not accessible to you.
     
    However, I have resolved the problem with a workaround. The populating code has been changed to allow the IE_Loader script to complete before placing the html from the underlying page into the CuteEditor control. This seems to have resolved the issue.
     
    Thanks,
    Richard
     
View as RSS news feed in XML