mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-21 10:55:34 +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
79.4%
JavaScript
17.1%
SCSS
2%
CSS
0.6%
HTML
0.5%
Other
0.4%