Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Get selection parentNode / Tagname

    Hello fellow scripters!

    I am wondering how I can get a text selection parentNode type or Tagname
    so I could check if the current selection is already a link or not.
    It's for a rich text editor I am trying to make.


    Can anyone give me a head start? Many thanks!

  • #2
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok I got it working! One problem in Firefox is that when i make a selection from right to left it returns NULL. Any other browser understands it, does anyone have a firefox solution for this?
    Last edited by Mrtech; 10-26-2010 at 03:33 PM.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •