Closed MaxGyver83 closed 1 year ago
Hmm, testing in a GitHub textbox, this doesn't really seem to fix it for me. On what website did you test this?
I have tested this on https://tiddlywiki.com:
But here it works also in the GitHub comment textbox.
In case there are different ways of testing:
I have opened about:debugging
, clicked on "This Firefox", then "Load Temporary Add-on...", selected ~/repos/textern/webex/
and then tested it.
The GitHub issue mentioned in #60 is slightly different. Starting Textern on a blank textarea and saving some text doesn't enable the "Comment" button until additional edits are made. Ideally we have something that fixes that too. In some quick tests, I played around with variations of that code and e.g. e.dispatchEvent(new KeyboardEvent("keydown", { key: " ", code: "Space" }));
, but that doesn't do the trick.
Oh, yes, you are right about the "Comment" button. So far, I couldn't find a way to enable it.
But you could merge this anyway as it fixes my issue in TiddlyWiki. (And maybe for other web pages, too.)
WFM. Can you add a short comment explaining the line, and drop the fixes marker for #60?
No problem. Done!
Trigger input event after updating a textarea with textern to make website aware of changed text. This is necessary on https://tiddlywiki.com.