Results 1 to 2 of 2

Thread: Ext js 4 : How to monitor cursor postion in textfield or textareafield?

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    13
    Vote Rating
    0
      0  

    Default Unanswered: Ext js 4 : How to monitor cursor postion in textfield or textareafield?

    Hi,
    I have form which contains one combobox and one textareafield. What i want to do is that, insert a new string in the textareafield at the current cursor position along with the previous texts typed into it, only on the combobox 'select' event occurs. Please help me by providing the code

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    I don't believe there's a built-in method to get information about the current caret position or the current selection. If I were you I'd write one using Google searches with the selectText() method for inspiration:

    http://docs.sencha.com/ext-js/4-0/so...hod-selectText

Posting Permissions

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