Is there anyway to be able to bind to key events of inline edit input field

Is there anyway to be able to bind to key events of inline edit input field

maeser@gmail.commaeser@gmail.com Posts: 5Questions: 1Answers: 0

Description of problem:
Using the Editor inline edit option.

I want to be able to use my own function to control input into the inline edit input field.

Specifically I'm trying to find a way to be able to bind a keyUp event listener to the dynamically created input field that is created when the user selects the field to be edited.

Thanks,
-mike

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 52,624Questions: 1Answers: 8,050 Site admin
    Answer ✓

    Hi Mike,

    editor.field('myField').input().on('keyup', function (e) {
      ...
    });
    

    is how to bind a keyup event listener. field().input() gives you the input element (wrapped by jQuery).

    Allan

  • maeser@gmail.commaeser@gmail.com Posts: 5Questions: 1Answers: 0

    thanks!

Sign In or Register to comment.