2 Replies Latest reply on Jan 11, 2009 10:03 PM by Madhav Subedi

    add image tag in place of mouse position in rich texteditor

    Armen Abrahamyan Level 1
      I have rich texteditor with content already.
      WHen user press mouse somewhere inside textfiled, i wanna add image.
      The problem is textArea.selectionBeginIndex property gives me position inside text area, but i have no idea how to map that position inside html text with all tags....
      the reversed way is fine, when user clicks inside textfiled that shows html, when i add there <img/> tag i can see it when u switch.
      Any ideas?