Get text only changes #427
Closed
ChizobaAmadi
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hello @ChizobaAmadi, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm implementing an auto-save feature by listening for text changes. Initially, I used
controller.addListener, but I noticed it also triggers events for text selection and focus changes. I understand this behaviour is consistent with the native text field, so it's not a bug.I then discovered
controller.document.changes, which meets my needs for detecting only content changes. However, there seems to be limited documentation on this approach, so I wanted to check if there are any caveats I should be aware of.Thank you
Beta Was this translation helpful? Give feedback.
All reactions