mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-12 17:13:29 +00:00
`withEventValue` is not needed here, because the `onChange` event comes from ace, not a normal DOM event. But even with that fix, it seems AceEditor doesn't yet work well with the DDAU pattern. On every keypress, the editor re-renders and puts the cursor back at the beginning. For now, this commit removes the `@onChange` hook, so we go back to relying on the two-way binding of `@content`. Followup to a5a39dd2ee5a71365cd349cabc1f34e261235d24
Discourse AI Plugin
Plugin Summary
For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco
Languages
Ruby
81.2%
JavaScript
15.6%
SCSS
2.2%
CSS
0.4%
HTML
0.4%
Other
0.2%