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

Re: Rich Text Editor Name After Render

Expand Messages
  • Sayak Bose
    Hi, I have a problem while adding a spellchecker to yahoo RTE. While I am calling saveHTML() method it renders the text into the text area with all the
    Message 1 of 5 , Nov 30, 2007
    • 0 Attachment
      Hi,

      I have a problem while adding a spellchecker to yahoo RTE. While I
      am calling saveHTML() method it renders the text into the text area
      with all the formating which would not help my cause. Can you suggest
      something on how to get the unformatted text only for spell checking?

      Alos could you suggest a good spell checker which can easily be
      integrated with Yahoo RTE?

      Many Thanks,
      Sayak

      --- In ydn-javascript@yahoogroups.com, "rballou05" <rob.ballou@...> wrote:
      >
      > --- In ydn-javascript@yahoogroups.com, "jackson0810"
      > <Derrick_Jackson@> wrote:
      > >
      > > Hi,
      > >
      > > I am trying to attach a spell checker to the rich text editor.
      > > However using the ID in the <textarea> tag only checks the data that
      > > was in the textarea when the page was loaded. How do I get to the
      > > name of the area that is created when the rich text area is rendered?
      > >
      >
      > You have to call saveHTML() to get the HTML to be in the textarea, so
      > you can do:
      >
      > myEditor.saveHTML()
      > content = myEditor.get('textarea').value
      >
      > Hope that helps,
      >
      > Rob
      >
    • dav.glass@yahoo.com
      Sayak -- You can strip the HTML like this: myEditor.saveHTML(); var stripHTML = / /g; var html = myEditor.get( textarea ); var text =
      Message 2 of 5 , Nov 30, 2007
      • 0 Attachment
        Sayak --

        You can strip the HTML like this:
        myEditor.saveHTML();
        var stripHTML = /<\S[^><]*>/g;
        var html = myEditor.get('textarea');
        var text = hmtl.replace(stripHTML, '');
        Now text will be plain text..


        I have nothing to suggest on the spell checker part.. :)

        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: Sayak Bose <sayak_engg@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Friday, November 30, 2007 7:21:50 AM
        Subject: [ydn-javascript] Re: Rich Text Editor Name After Render

        Hi,
         
          I have a problem while adding a spellchecker to yahoo RTE. While I
        am calling saveHTML() method it renders the text into the text area
        with all the formating which would not help my cause. Can you suggest
        something on how to get the unformatted text only for spell checking?

        Alos could you suggest a good spell checker which can easily be
        integrated with Yahoo RTE?

        Many Thanks,
        Sayak

        --- In ydn-javascript@yahoogroups.com, "rballou05" <rob.ballou@...> wrote:
        >
        > --- In ydn-javascript@yahoogroups.com, "jackson0810"
        > <Derrick_Jackson@> wrote:
        > >
        > > Hi,
        > >
        > > I am trying to attach a spell checker to the rich text editor.
        > > However using the ID in the <textarea> tag only checks the data
        that
        > > was in the textarea when the page was loaded.  How do I get to the
        > > name of the area that is created when the rich text area is
        rendered?
        > >
        >
        > You have to call saveHTML() to get the HTML to be in the textarea, so
        > you can do:
        >
        >    myEditor.saveHTML()
        >    content = myEditor.get('textarea').value
        >
        > Hope that helps,
        >
        > Rob
        >





        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/


      • Sayak Bose
        Thanks Dav. I shall try that. regards, Sayak
        Message 3 of 5 , Nov 30, 2007
        • 0 Attachment
          Thanks Dav. I shall try that.

          regards,
          Sayak
          --- In ydn-javascript@yahoogroups.com, dav.glass@... wrote:
          >
          > Sayak --
          >
          > You can strip the HTML like this:
          > myEditor.saveHTML();
          > var stripHTML = /<\S[^><]*>/g;
          > var html = myEditor.get('textarea');
          > var text = hmtl.replace(stripHTML, '');
          > Now text will be plain text..
          >
          >
          > I have nothing to suggest on the spell checker part.. :)
          >
          > 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: Sayak Bose <sayak_engg@...>
          > To: ydn-javascript@yahoogroups.com
          > Sent: Friday, November 30, 2007 7:21:50 AM
          > Subject: [ydn-javascript] Re: Rich Text Editor Name After Render
          >
          >
          > Hi,
          >
          > I have a problem while adding a spellchecker to yahoo RTE. While I
          > am calling saveHTML() method it renders the text into the text area
          > with all the formating which would not help my cause. Can you suggest
          > something on how to get the unformatted text only for spell checking?
          >
          > Alos could you suggest a good spell checker which can easily be
          > integrated with Yahoo RTE?
          >
          > Many Thanks,
          > Sayak
          >
          > --- In ydn-javascript@yahoogroups.com, "rballou05" <rob.ballou@>
          > wrote:
          > >
          > > --- In ydn-javascript@yahoogroups.com, "jackson0810"
          > > <Derrick_Jackson@> wrote:
          > > >
          > > > Hi,
          > > >
          > > > I am trying to attach a spell checker to the rich text editor.
          > > > However using the ID in the <textarea> tag only checks the data
          > that
          > > > was in the textarea when the page was loaded. How do I get to the
          > > > name of the area that is created when the rich text area is
          > rendered?
          > > >
          > >
          > > You have to call saveHTML() to get the HTML to be in the textarea, so
          > > you can do:
          > >
          > > myEditor.saveHTML()
          > > content = myEditor.get('textarea').value
          > >
          > > Hope that helps,
          > >
          > > Rob
          > >
          >
          >
          >
          >
          >
          > Yahoo! Groups Links
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.