1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    13
    Vote Rating
    0
    chandran09 is on a distinguished road

      0  

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

    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,605
    Answers
    543
    Vote Rating
    326
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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

Thread Participants: 1