Open GOKOP opened 4 years ago
Yeah, definitely noticed this as well in some websites (oddly not on GitHub though). Might just need to kick event listeners after each update. Will look into this.
I also noticed this in the SoGO client from Mailcow. When writing an email it probably saves the draft after every few keystrokes, and as soon as I used TexTern it stays at the last state. Took me a while to figure out what was happening.
Same problem in TiddlyWiki. When I edit a "tiddler" with textern and have the preview pane activated, I don't see any changes made in textern in the preview until I make some changes in the browser textedit area afterwards.
This is also a problem in Microsoft Teams. The message field contains some placeholder text:
When I enter some text using textern, the placeholder text won't be cleared and the entered text is hard to read:
I need to enter more text afterwards to get the placeholder text removed.
Might just need to kick event listeners after each update. Will look into this.
@jlebon : Is this project still alive? Could you look into this if you find some time?
@jlebon : Finally, I could find a really easy way to fix this on my own. See pull request #87.
After editing the field through Textern the edited text does appear in the field, but the webpage behaves as if it was not there. For example, on Github I can't submit a comment written entirely through Textern until I change something afterwards; if I write something beforehand and then edit through Textern, without further manipulations only stuff that was written before gets submitted. This also makes Textern unusable on Reddit because it resets the filed to whatever it was before using Textern when I click it.