User talk:Dixtosa/AjaxEdit.js

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Live preview[edit]

Hmm, I like the live preview idea, but at the moment it's frustrating: it appears when you put your mouse over "Live preview", but disappears otherwise. Also, it seems to be bolded, which is strange. — Eru·tuon 23:19, 26 May 2017 (UTC)[reply]

Yes that's how I wanted it to work. If your cursor is active you can move your mouse to the "Live preview" text without un-focusing the cursor. What's the problem?--Dixtosa (talk) 00:01, 27 May 2017 (UTC)[reply]
Okay, okay, it really is frustrating xD. I am going to place a checkbox there instead of a hoverable text. --Dixtosa (talk) 08:06, 28 May 2017 (UTC)[reply]

Gadgetification[edit]

This could be a gadget because quite a few people use it. But maybe that would require ES5-ifying it, and then if you kept your own ES6 version, it would be complicated to update... — Eru·tuon 22:02, 8 January 2019 (UTC)[reply]

Well, anyway, I made it (MediaWiki:Gadget-AjaxEdit.js) using Babel to compile an ES5-compatible version. — Eru·tuon 00:00, 9 January 2019 (UTC)[reply]

Dixtosa's .js stopped working for me recently (no later (edit: no earlier) than Feb 3, according to my Contributions), but Erutuon's gadget brings the button back. Is that expected?__Gamren (talk) 23:22, 9 February 2019 (UTC)[reply]
@Gamren: I was puzzled because nothing changed in the script, but it turned out that removing a deprecated dependency (mediawiki.api.parse) fixed it. I guess the dependency wasn't loading and this prevented the main part of the script from ever running. Maybe they upgraded the deprecation to something else (edit: apparently so in this change), because it used to be that trying to load that dependency displayed a message in the browser console. — Eru·tuon 23:56, 9 February 2019 (UTC)[reply]

Bug: blocked save is equivalent to a successful save: the edit box disappears[edit]

See title. Error: API returned error code [...] should be treated the same as Error: Request failed., and the edit box should not vanish.

This can be tested by trying to add an empty header ========, which is blocked by an abuse filter. —Suzukaze-c (talk) 10:40, 24 October 2020 (UTC)[reply]

@Suzukaze-c: Fixed thanks. I have updated the gadget too. Dixtosa (talk) 17:20, 27 October 2020 (UTC)[reply]