Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. In HTML Editor how can we find cursor position or selected text ?

In HTML Editor how can we find cursor position or selected text ?

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-nethelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jain Vijay
    wrote on last edited by
    #1

    Hi All, can you tell me that how can we find cursor position or selected text in HTML editor? There can be 3 possibilities: 1. We can find the position of cursor. 2. We can find the starting and Ending position of selected text. 3. We can find the complete selected text. I have done 2nd and 3rd task for IE but could not succeeded for Firefox. Plz help me to find out the solution that can work in both IE and Firefox. Further, I will explain that I am creating rich text box editor in asp.net. So I am trying to find the cursor position in content window(html page) of iframe. Thanx for any kind of help...

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    N 1 Reply Last reply
    0
    • J Jain Vijay

      Hi All, can you tell me that how can we find cursor position or selected text in HTML editor? There can be 3 possibilities: 1. We can find the position of cursor. 2. We can find the starting and Ending position of selected text. 3. We can find the complete selected text. I have done 2nd and 3rd task for IE but could not succeeded for Firefox. Plz help me to find out the solution that can work in both IE and Firefox. Further, I will explain that I am creating rich text box editor in asp.net. So I am trying to find the cursor position in content window(html page) of iframe. Thanx for any kind of help...

      Regards... Vijay Jain :)

      "One thing you can't recycle is wasted time."

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Jain Vijay wrote:

      I am creating rich text box editor in asp.net

      Why recreate something which already exists in abundance. Try this one as a start http://www.asp.net/AJAX/AjaxControlToolkit/Samples/HTMLEditor/HTMLEditor.aspx[^]


      only two letters away from being an asset

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups