fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.25k stars 116 forks source link

textarea modified by javascript #299

Closed windybb closed 8 months ago

windybb commented 8 months ago

Description and repro

GT does not notice text changes edited by java script, e.g. by a WYSIWYG editor. Inserting a tag edits the text in the textarea, but does not change the data in the text editor.

When the text editor is focused, the changes on textarea is cleared, of course.

I assume it is because keystroke events and text change events do not arise, is there any way to fix this? We would be very happy if it could be implemented in a way by polling.

Browser(s) tried

chrome

Editor(s) tried

emacs

fregante commented 8 months ago

This is tracked in: