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

Re: [ydn-javascript] Rich Text Editor's Underline CSS fails in multiple browsers

Expand Messages
  • Dav Glass
    shamrog12 -- I m not seeing anything wrong with that example.. Can you give me some exact steps on reproducing it? What version of Firefox and Firebug are you
    Message 1 of 3 , Jun 2, 2008
    • 0 Attachment
      shamrog12 --

      I'm not seeing anything wrong with that example..

      Can you give me some exact steps on reproducing it?

      What version of Firefox and Firebug are you using?

      I'm guessing that you have the "Show CSS Errors" checked in Firebug.. I normally don't look at those errors since Firefox reports some incorrect errors there..

      Dav

      Dav Glass
      dav.glass@...
      blog.davglass.com




      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +


      ----- Original Message ----
      From: shamrog12 <shamrog12@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Sunday, June 1, 2008 10:10:02 PM
      Subject: [ydn-javascript] Rich Text Editor's Underline CSS fails in multiple browsers

      I just started using Rich Text Editor and found something that I didn't know if anyone else
      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-decoration
      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 the
      RTE. I searched for comments about this from others but found nothing.

      Thoughts? Observations? Insight? I believe that IE renders the underline text as desired
      using the "illegal" CSS so IE-only users might not have noticed this.


      ------------------------------------

      Yahoo! Groups Links
    • shamrog12
      You know, it might have been an issue with Firebug in FF 2.0.0.14 and I haven t identified the issue yet in Safari. I m thinking that it was also a
      Message 2 of 3 , Jun 2, 2008
      • 0 Attachment
        You know, it might have been an issue with Firebug in FF 2.0.0.14 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
        else
        > 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-
        decoration
        > 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
        the
        > RTE. I searched for comments about this from others but found nothing.
        >
        > Thoughts? Observations? Insight? I believe that IE renders the underline text as
        desired
        > 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.