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

Re: [ydn-javascript] Switching between 2 textarea

Expand Messages
  • dav.glass@yahoo.com
    This example should get you started: http://developer.yahoo.com/yui/examples/editor/multi_editor.html You could grab the data from the textarea s instead of
    Message 1 of 2 , Oct 5, 2007
    • 0 Attachment
      This example should get you started:
      http://developer.yahoo.com/yui/examples/editor/multi_editor.html

      You could grab the data from the textarea's instead of the div's..

      Hope that helps :)
      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: leoleoleoleoleoleoleoleo13456 <calahaan@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Friday, October 5, 2007 8:27:28 AM
      Subject: [ydn-javascript] Switching between 2 textarea

      Hello,
      I have 2 textarea in a web page, and I would like to switch a RTE
      from the first textarea to the second after clicking a button, but I
      failed.

      <textarea id="editor1" >Hello Bill !</textarea>
      <textarea id="editor2" >Hello John !</textarea>

      myEditor = new YAHOO.widget. Editor('editor1' , { height: '100%',
      width: '100%', animate: false, dompath: false})
      myEditor.render( );



      switchTextArea( 'editor2' )

      // Save text from editor to the actual textarea
      // Associate editor to the the textarea
      // get text from the textarea to the editor
      function switchTextArea( newTextareaId)
      {
      myEditor.saveHTML( );
      ...
      ?
      }
      What could i do to do that ?
      Thanks !


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