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

Re: clearEditorDoc() doesnt clear RTE in IE

Expand Messages
  • sai.kumar_gv
    Hi , clearEditorDoc(); clears the text that we key in on RTE . but if the text is already present in This is not cleared . How do we
    Message 1 of 7 , Mar 2, 2009
    • 0 Attachment
      Hi ,
      clearEditorDoc(); clears the text that we key in on RTE . but if the
      text is already present in <textarea> This is not cleared </textarea>
      . How do we clear both default text and text we key in . Where as in
      firefox it clears both .


      Even .setEditorHTML('<br>'); doesnt clear default text

      Regards
      Sai

      --- In ydn-javascript@yahoogroups.com, Dav Glass <davglass@...> wrote:
      >
      > Please file a bug, it should work..
      >
      > You can also do i this way:
      >
      > myEditor.setEditorHTML('<br>');
      >
      > 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 Sun, Mar 1, 2009 at 8:53 AM, sai.kumar_gv <sai.kumar_gv@...> wrote:
      > > clearEditorDoc() is working fine in FireFox , but not in IE.
      > >
      > > Is there any woraround for IE . reset , set('element',"",true) doesnt
      > > work.
      > >
      > > Please suggest.
      > >
      > > Regards
      > > Sai
      > >
      > >
      >
    • Dav Glass
      First clear the Editor with setEditorHTML, then clear the textarea: myEditor.setEditorHTML( ); myEditor.get( element ).value = ; Dav -- Dav Glass
      Message 2 of 7 , Mar 2, 2009
      • 0 Attachment
        First clear the Editor with setEditorHTML, then clear the textarea:
        myEditor.setEditorHTML('<br>');
        myEditor.get('element').value = '';

        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, Mar 2, 2009 at 12:39 AM, sai.kumar_gv <sai.kumar_gv@...> wrote:
        > Hi ,
        > clearEditorDoc(); clears the text that we key in on RTE . but if the
        > text is already present in <textarea> This is not cleared </textarea>
        > . How do we clear both default text and text we key in . Where as in
        > firefox it clears both .
        >
        > Even .setEditorHTML('<br>'); doesnt clear default text
        >
        > Regards
        > Sai
        >
        > --- In ydn-javascript@yahoogroups.com, Dav Glass <davglass@...> wrote:
        >>
        >> Please file a bug, it should work..
        >>
        >> You can also do i this way:
        >>
        >> myEditor.setEditorHTML('<br>');
        >>
        >> 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 Sun, Mar 1, 2009 at 8:53 AM, sai.kumar_gv <sai.kumar_gv@...> wrote:
        >> > clearEditorDoc() is working fine in FireFox , but not in IE.
        >> >
        >> > Is there any woraround for IE . reset , set('element',"",true) doesnt
        >> > work.
        >> >
        >> > Please suggest.
        >> >
        >> > Regards
        >> > Sai
        >> >
        >> >
        >>
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.