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

Set focus after toggle from and to Rich Text Editor

Expand Messages
  • mettatest
    Hi, I implemented the Plain Text Switcher http://developer.yahoo.com/yui/examples/editor/switch_editor.html and it works great except that I lose my focus when
    Message 1 of 3 , Jul 30, 2008
    • 0 Attachment
      Hi, I implemented the Plain Text Switcher
      http://developer.yahoo.com/yui/examples/editor/switch_editor.html

      and it works great except that I lose my focus when I click the toggle
      button, even though I set the { focusAtStart: true } as one of the
      YAHOO.widget.Editor options, and { focusAtStart: true } works before
      the toggle is clicked only.

      Is there a way to set the focus of the editor via javascript?
    • Dav Glass
      mettatest -- Try this: myEditor._focusWindow(); Dav Dav Glass dav.glass@yahoo.com blog.davglass.com + Windows: n. - The most successful computer virus, ever. +
      Message 2 of 3 , Jul 30, 2008
      • 0 Attachment
        mettatest --

        Try this:

        myEditor._focusWindow();

        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: mettatest <mettatest@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Wednesday, July 30, 2008 6:49:45 PM
        Subject: [ydn-javascript] Set focus after toggle from and to Rich Text Editor

        Hi, I implemented the Plain Text Switcher
        http://developer.yahoo.com/yui/examples/editor/switch_editor.html

        and it works great except that I lose my focus when I click the toggle
        button, even though I set the { focusAtStart: true } as one of the
        YAHOO.widget.Editor options, and { focusAtStart: true } works before
        the toggle is clicked only.

        Is there a way to set the focus of the editor via javascript?


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

        Yahoo! Groups Links

        <*> To visit your group on the web, go to:
            http://groups.yahoo.com/group/ydn-javascript/

        <*> Your email settings:
            Individual Email | Traditional

        <*> To change settings online go to:
            http://groups.yahoo.com/group/ydn-javascript/join
            (Yahoo! ID required)

        <*> To change settings via email:
            mailto:ydn-javascript-digest@yahoogroups.com
            mailto:ydn-javascript-fullfeatured@yahoogroups.com

        <*> To unsubscribe from this group, send an email to:
            ydn-javascript-unsubscribe@yahoogroups.com

        <*> Your use of Yahoo! Groups is subject to:
            http://docs.yahoo.com/info/terms/

      • mettatest
        Wow!!!! Less than 20 minutes for a reply. The support for this project is amazing!! ... Text Editor
        Message 3 of 3 , Jul 30, 2008
        • 0 Attachment
          Wow!!!! Less than 20 minutes for a reply. The support for this
          project is amazing!!

          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
          >
          > mettatest --
          >
          > Try this:
          >
          > myEditor._focusWindow();
          >
          > 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: mettatest <mettatest@...>
          > To: ydn-javascript@yahoogroups.com
          > Sent: Wednesday, July 30, 2008 6:49:45 PM
          > Subject: [ydn-javascript] Set focus after toggle from and to Rich
          Text Editor
          >
          > Hi, I implemented the Plain Text Switcher
          > http://developer.yahoo.com/yui/examples/editor/switch_editor.html
          >
          > and it works great except that I lose my focus when I click the toggle
          > button, even though I set the { focusAtStart: true } as one of the
          > YAHOO.widget.Editor options, and { focusAtStart: true } works before
          > the toggle is clicked only.
          >
          > Is there a way to set the focus of the editor via javascript?
          >
          >
          > ------------------------------------
          >
          > Yahoo! Groups Links
          >
          >
          >
          > http://docs.yahoo.com/info/terms/
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.