I just want to prevent editing in some area of ββthe text area in flex. How can I do that?
let the length of the text in the text area be 50 characters, I want to allow editing if the cursor position is less than 15, and if the cursor position in the text area is more than 15, it should not allow the user to add more text to the text area, If the user presses any key, he should not add a character to the text area.
I used
event.preventDefault();
event.stopImmediatePropagation();
event.stopPropagation();
but it did not work for me.
Can anyone help me? Thank.
source
share