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

Re: Editor troubles

Expand Messages
  • marcohamersma
    Hello Dav, Thank you very much for your help, everything is working as it should Marco ... inside Edit mode it will use the browsers default. When you save the
    Message 1 of 5 , Aug 25, 2008
    • 0 Attachment
      Hello Dav,

      Thank you very much for your help, everything is working as it should

      Marco

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > marcohamersma --
      >
      > 1. It should convert them when you call saveHTML(). While it's
      inside Edit mode it will use the browsers default. When you save the
      data out, does it not convert the <br>'s to <br />'s?
      >
      > 2. The reasoning for it was simple. It took 5 lines of code to make
      IE act like the other A-Grade browsers. By default, the other browsers
      support <br>'s for Enter. IE is the only one that defaults to <p>. I
      could stop IE's behavior with very little code. In order to make the
      other A-Grade browsers use <p>'s instead would take 100-200~ lines of
      code.
      >
      > Does that make sense?
      > 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: marcohamersma <marco@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Sunday, August 24, 2008 10:42:34 AM
      > Subject: [ydn-javascript] Re: Editor troubles
      >
      > Dear Dav,
      >
      > 1. I might have been a little quick on drawing my conclusion, but I
      > based it on the fact that the line breaks yui creates are all <br>
      > instead of <br />. I thought setting the markup option in the
      > configuration to "xhtml" would fix it, but that made no difference.
      >
      > 2. Ok, I understand. Though I am curious why the editor wasn't
      > designed to support the paragraph tag, is there a motivation for that
      > choice?
      >
      > 3. That indeed makes sense and it solved the problem. Thank you
      >
      > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
      > >
      > > marcohamersma --
      > >
      > > 1. Please explain the first issue a little more "doesn't seem to do
      > create xhtml" doesn't help if I don't know what it's doing/not doing.
      > >
      > > 2. The RTE was not designed to support paragraph tags. There are a
      > few people using it in production that have implemented this feature
      > and are wanting to give the code back to us so we can roll it back
      > into YUI. As far as I know, no one has released their code yet.
      > >
      > > 3. I think your issue here is that you have the "plainText" config
      > option set. That config option replaces all "\n" characters in the
      > textarea with a <br>. So if you have a list in there, it will add <br>
      > after every </li> since it probably has a "\n" after it.
      > >
      > > Does that make sense?
      > > Dav
      > >
      > >
      > > Dav Glass
      > > dav.glass@
      > > blog.davglass.com
      > >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > http://docs.yahoo.com/info/terms/
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.