Loading ...
Sorry, an error occurred while loading the content.

Re: Rich Text Editor's Underline CSS fails in multiple browsers

Expand Messages
  • shamrog12
    You know, it might have been an issue with Firebug in FF and I haven t identified the issue yet in Safari. I m thinking that it was also a
    Message 1 of 3 , Jun 2 9:10 AM
      You know, it might have been an issue with Firebug in FF and I haven't identified
      the issue yet in Safari. I'm thinking that it was also a stripslashes() issue there so I had
      two issues going at the same time which made it hard to accurately identify both. Thanks.

      --- In ydn-javascript@yahoogroups.com, "shamrog12" <shamrog12@...> wrote:
      > I just started using Rich Text Editor and found something that I didn't know if anyone
      > could comment on. In order to simulate an underline the RTE executes the following
      line of
      > code to replace the deprecated <u> with a <span> and inline CSS text-decoration. The
      > problem I'm having exists around the fact that this apparently isn't valid CSS (text-
      > and firefox (and I think i'm seeing Safari do it too) removes that unrecognized style
      > declaration which in turn removes the underline when the JSON data is returned to the
      > browser.
      > Firefox gives this response when watching with Firebug: Unknown property '"text-
      > decoration'. Declaration dropped.
      > The example I'm using on my local web server is the one found at:
      > http://developer.yahoo.com/yui/examples/editor/post_editor_clean.html
      > Has anyone else run into this problem? This seems to be the only "illegal" CSS use in
      > RTE. I searched for comments about this from others but found nothing.
      > Thoughts? Observations? Insight? I believe that IE renders the underline text as
      > using the "illegal" CSS so IE-only users might not have noticed this.
    Your message has been successfully submitted and would be delivered to recipients shortly.