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

Re: [ydn-javascript] placing editor text in multiple textareas

Expand Messages
  • David Fealkoff
    Well a little progress.  I get the same sting in IE7, but I still just get a text string instead of rendered HTML with Colored or Bolded text.  I reviewed
    Message 1 of 5 , Jun 30, 2009
    View Source
    • 0 Attachment
      Well a little progress.  I get the same sting in IE7, but I still just get a text string instead of rendered HTML with Colored or Bolded text.  I reviewed the "one editor, multiple edit areas" demo.  It seems that when the editor is collapsed  the following sequence occurs:
      the texteditor is moved offscreen and the following lines are
      myEditor.saveHTML();
      editing.innerHTML = myEditor.get('element').value;
       
      (where the 'editing' variable has been assigned the <div> object which had previously been double clicked.)
      'editing' then displays the rendered text exactly as it appeared in the editor.
       
      Do I understand this correctly?  Any ideas why I am unable to display rendered text anywhere but in the text editor?
       
      David


      From: Dav Glass <davglass@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Monday, June 29, 2009 6:30:06 PM
      Subject: Re: [ydn-javascript] placing editor text in multiple textareas


      I didn't realize that "story-test" was a TEXTAREA, try this:

      document.getElement ById("story- test").value = editor.saveHTML( );

      On Sun, 28 Jun 2009, David Fealkoff wrote:

      >
      >
      > In Fire 3.0.11 the textarea with id="story-test" displays a descriptive string ie "Test text for <strong><font style="color: #c00000;">bold text</font>< /strong>text. ..".  What I'd like to see is not the string but the formatted text itself.
      >
      > In IE7 I get a javascript error "Unknown runtime error".  Unfortunately I don't have a development environment installed in IE7 to provide any additional detail at the moment.  Can you recommend one?
      >
      > David
      >
      >
      >
      >
      > ____________ _________ _________ __
      > From: Dav Glass <davglass@gmail. com>
      > To: ydn-javascript@ yahoogroups. com
      > Sent: Sunday, June 28, 2009 12:15:08 PM
      > Subject: Re: [ydn-javascript] placing editor text in multiple textareas
      >
      >
      >
      >
      >
      > To get the value from the Editor you have to call saveHTML(). This
      > should work:
      > document.getElement ById("story- test").innerHTML = editor.saveHTML( )
      >
      > On Sat, 27 Jun 2009, davidfealkoff wrote:
      >
      > > when I retrieve text from the server, I can view it inside of the
      > > text editor in its fully formatted state.. What I'd like to do is display the multiple formatted text strings inside of muliple textareas without the editor visible or even present.
      > >
      > > In looking at the one editor multiple edit area example it seemed that I could place formatted text in an separate test textarea with the following code:
      > >
      > > document.getElement ById("story- test").innerHTML = editor.get(' element') .value;
      > >
      > > However it doesn't place anything inside of the testarea id="story-test" .
      > >
      > > editor has been instantiated simply as follows:
      > > editor = new YAHOO.widget. Editor("story" ,{handleSubmit: true});
      > >
      > > If anybody can provide some guidance, I'd appreciate it.
      > >
      > > Thanks,
      > > David
      > >
      >
      > --
      > Dav Glass
      > davglass@gmail. com
      > 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 +
      >
      >
      >
      >
      >
      >
      --
      Dav Glass
      davglass@gmail. com
      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 +


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