Page MenuHomePhabricator

Provide a per-user customisable set of CharInserter buttons
Open, LowPublicFeature

Description

Author: n142857

Description:
This follows bug 9753. It's needed a preference which toggles off the toolbar
with the templates, IPA charachters, etc. A hack with CSS can be done to
visually hide it, but it's better to stop producing the HTML code (uncompressed
it's about 100 Kb, in Wikipedia).

Considering the discussion at
http://en.wikipedia.org/wiki/MediaWiki_talk:Edittools , I think that a better
option would be not just having enable/disable EditTools, but allowing the
users to change its implementation (add more characters, remove
categories, ...). If that's done, then enabling/disabling is trivial.


Version: unspecified
Severity: enhancement
Platform: Other
See Also:

Details

Reference
bz9754

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:37 PM
bzimport set Reference to bz9754.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Note that on enwiki, [[MediaWiki:Edittools]] is used as a convenient place to
dump anything you want under the edit box, not just massive globs of JS. We
probably don't want stuff like "If you don't want your writing to be edited
mercilessly or redistributed by others, do not submit it" vanished via user
preference. Furthermore, since by default this message is blank, by default
this preference would have no effect. And we all know how Brion hates
preferences, anyway . . .

A per-user-editable message would be something new, it would require a bit of
extra coding work. It's doable, much like user JS/CSS, but there are cascading
problems . . . presumably the content of the site message should just be ignored
if the user has customized it, but what about if some site wants to add dynamic
informative stuff below the edit box (like at the top of
[[Special:Recentchanges]] on enwiki)?

Personally, it seems best to me for enwiki et al. to just move this monstrous
thing into [[MediaWiki:Common.js]]. Then a) it will be cached by the client,
and b) it won't display in the first place for anyone not using JS. Anyone who
dislikes it could add some lines to [[Special:Mypage/monobook.js]] or whatever.

In the same vein, anyone who wants extra JS widgets could add them in their

custom JS. So this looks like more of a content issue than a software issue.
WONTFIX?

(Sorry for the whack-a-mole, by the way. I didn't actually think of most of
these considerations when you filed the original bug, particularly not how this
should more properly be implemented, but not I think it's probably an
inappropriate change altogether.)

n142857 wrote:

Yes, moving all this to a .js is also was I thought to allow customization or
disabling it. It can be Commons.js or another.

So the solution would be to move the HTML content from [[MediaWiki:Edittools]]
to [[MediaWiki:Common.js]] on each Wikimedia project (manually). Since all
projects would need that change, maybe it makes sense to support
this "editTools via JavaScript" in MediaWiki. Maybe, instead of including
MediaWiki:Edittools in a <div>, a <script> could be included which reads the
contents of MediaWiki:Edittools and writes them inside of the <div>.

And it's needed also some examples of how can a user customize (extend or
reduce) or disable the contents easily.

See also Bug 11130, "Preference to toggle edit tools".

  • Bug 13284 has been marked as a duplicate of this bug. ***

sminthopsis84 wrote:

Not sure if this is the reason for problems we are having in https://simple.wikipedia.org. Edittools is wanted, otherwise editing with a Scandinavian keyboard requires copy and paste for each [ or { character used, i.e., every template or link added. Edittools is listed in the user preferences, but doesn't work. (It's under Gadgets, Editing Gadgets.) Editing Help offers links, but not templates. What's available in commons.wikimedia.org would be great, "Old edittools" that work. Thanks.

Jdforrester-WMF renamed this task from Customisable per-user edit tools to Provide a per-user customisable set of CharInserter buttons.Nov 6 2018, 4:19 PM
Jdforrester-WMF removed a subscriber: wikibugs-l-list.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM