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

Override browser text drag/drop behavior

Expand Messages
  • kenfeldt
    My YUI app has two iframes- one for HTML content, the other for the YUI rich text editor. FFox and IE both have a default behavior in which text in the HTML
    Message 1 of 2 , Dec 8, 2008
    • 0 Attachment
      My YUI app has two iframes- one for HTML content, the other for the
      YUI rich text editor.

      FFox and IE both have a default behavior in which text in the
      HTML window can be selected, dragged, and dropped (inserted) into
      another HTML area... which includes the YUI editor. We need to
      over-ride (or at least specialize) this behavior.

      Our initial instinct is to 'guess' at the events that IE and FFox use
      to accomplish this (e.g. 'ondrop' or 'onmouseup') and use Javascript
      to add our logic --- Can anyone in YUI/Editor land tell me if there
      is an easier way to specialize 'text drop' logic using some event
      that may be common to both IE and FFox's text drop logic? ...or does
      the community think that my best but is to disable the browser's
      default text select/drag/drop behavior and replace it with YUI's
      drag/drop widgets.

      Thanks for any help.
    • Dav Glass
      kenfeldt -- Those event s are not exposed to the Editor :( And the ones that are, don t work across browsers.. Dav -- Dav Glass davglass@gmail.com
      Message 2 of 2 , Dec 8, 2008
      • 0 Attachment
        kenfeldt --

        Those event's are not exposed to the Editor :(

        And the ones that are, don't work across browsers..

        Dav

        --
        Dav Glass
        davglass@...
        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  +


        On Mon, Dec 8, 2008 at 11:05 AM, kenfeldt <kfeldt@...> wrote:

        My YUI app has two iframes- one for HTML content, the other for the
        YUI rich text editor.

        FFox and IE both have a default behavior in which text in the
        HTML window can be selected, dragged, and dropped (inserted) into
        another HTML area... which includes the YUI editor. We need to
        over-ride (or at least specialize) this behavior.

        Our initial instinct is to 'guess' at the events that IE and FFox use
        to accomplish this (e.g. 'ondrop' or 'onmouseup') and use Javascript
        to add our logic --- Can anyone in YUI/Editor land tell me if there
        is an easier way to specialize 'text drop' logic using some event
        that may be common to both IE and FFox's text drop logic? ...or does
        the community think that my best but is to disable the browser's
        default text select/drag/drop behavior and replace it with YUI's
        drag/drop widgets.

        Thanks for any help.


      Your message has been successfully submitted and would be delivered to recipients shortly.