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

20223Re: YUI RTE does not get Selection in IE7

Expand Messages
  • merahul94538
    Oct 30, 2007
    • 0 Attachment
      I looked at the example and was not able to figure out anything.
      I am noobie to javascript so most probably I am doing anything wrong.
      Here is what I am trying to do
      User types some text in RTE, hit a button top 'Save data', after that
      I need to get the selected text in RTE and save in the system.
      I can make it work with TinyMCE but i really want to make it work
      with YUI RTE.

      Even the example link you mentioned did not work for me..
      Can you please give me specific example , if possible?
      appreciate any help
      --- In ydn-javascript@yahoogroups.com, dav.glass@... wrote:
      > merahul94538 --
      > The _getSelection method is not intended to return the text string
      of the selection. It returns a usable selection object:
      > http://developer.mozilla.org/en/docs/DOM:window.getSelection
      > http://msdn2.microsoft.com/en-us/library/ms535869.aspx
      > This example should help you get what you need:
      > http://blog.davglass.com/files/yui/editor6/
      > Let me know if you need anything else..
      > 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: merahul94538 <merahul94538@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Tuesday, October 30, 2007 7:21:51 PM
      > Subject: [ydn-javascript] YUI RTE does not get Selection in IE7
      > Hello all,
      > I am trying to get the selected text from RTE when a 'Select Text'
      > link is clicked.
      > MyEditor._getSelection() works fine for firefox but IE does not.
      > Any ideas please?
      > thanks
      > Yahoo! Groups Links
    • Show all 8 messages in this topic