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

Re: [ydn-javascript] SimpleEditor Disabled Buttons

Expand Messages
  • dav.glass@yahoo.com
    Semih -- Seems like you found a bug, please file it here: http://developer.yahoo.com/yui/editor#filingbugs Dav Dav Glass dav.glass@yahoo.com blog.davglass.com
    Message 1 of 2 , Oct 31, 2008
    • 0 Attachment
      Semih --

      Seems like you found a bug, please file it here:
      http://developer.yahoo.com/yui/editor#filingbugs


      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: Semih Hazar <shazar@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Friday, October 31, 2008 10:02:51 AM
      > Subject: [ydn-javascript] SimpleEditor Disabled Buttons
      >
      > Hi,
      >
      > I'm using the SimpleEditor, but there's one thing that seems to be
      > wrong. If the user clicks one of the disabled buttons, the default event
      > is not stopped, and since the button has an , the page jumps
      > to the top.
      >
      > You can see here:
      >
      > http://developer.yahoo.com/yui/examples/editor/simple_editor.html
      >
      > Click on 'Create Link' button when it's disabled (i.e. no text is selected)
      > I've tried this with FF2, Chrome, and IE7
      >
      >
      > After investigating it a bit, I found out that no events are fired if a
      > button is disabled. The defaults events are also not stopped.
      >
      > See simpleeditor.js @ line 307:
      >
      > // Disabled buttons should not respond to DOM events
      > if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
      > return;
      > }
      >
      > If I add the following before the return:
      > Event.stopEvent(p_aArgs);
      > things seems to be ok.
      >
      >
      > Could someone comment on this issue ?
      >
      > Regards,
      > Semih Hazar
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.