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.32k stars 115 forks source link

GhostText doesn't fire keypress events #42

Closed Azeirah closed 3 years ago

Azeirah commented 9 years ago

I've got a textarea which maps source text to a markdown preview which updates automatically on keypress events. GhostText doesn't fire any keypress events, because of this, the preview doesn't get updated at all.

fregante commented 9 years ago

Ideally it should simulate the whole sequence of events, from keydown to input, but I haven't had time to work on it in a while.

GhostText fires the input event on the field, so if you control the textarea use that event instead. Keep keypress too for IE compatibility (I think).

Cacodaimon commented 9 years ago

I moved the discussion to the right project: https://github.com/Cacodaimon/GhostText-for-Chrome/issues/43

fregante commented 8 years ago

Moving this back here. We need to add the remaining events:

Like in https://github.com/Cacodaimon/GhostText-for-Chrome/commit/eb7029fb4f80352f8ecc17f0a6254e3de02f5478

@Cacodaimon do you have time?