Page MenuHomePhabricator

Non-technical way to customize the WikiEditor editing tools
Open, LowestPublicFeature

Description

In the days before the Vector roll out, the main way different wikis had to offer their users different Unicode characters was [[MediaWiki:Edittools]]. This meant that each wiki had their own set of characters that their users could easily insert in the articles.

After the new skin was introduced, it would make sense to dispose of the old EditTools (it's difficult to go back and forth between the top and the bottom of the editbox). In order for that to be possible, local communities should have the possibility to either:

  1. Edit the current booklets/toolbars
  2. Add new toolbars/booklets
  3. Both of the above.

The customization should be made by reading pages in the MediaWiki namespace, so that any sysop could do it and the system should be as non-technical as possible.

One proposal would be to have a system similar to the one used for gadgets:

new_button := button_name|button_picture|pre_code|peri_code|post_code
new_booklet:= booklet_text|page_containing_booklet_entries
page_containing_booklet_entries := unicode_code|symbol_to_be_shown

This should be implemented along with bug T25065 in order to allow more fine-grained tuning of the toolbar.


Version: unspecified
Severity: enhancement

Details

Reference
bz25068

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:12 PM
bzimport added a project: WikiEditor.
bzimport set Reference to bz25068.
bzimport added a subscriber: Unknown Object (MLST).

There is already a way to add new toolbars and bocklets and to add a button or booklet to the current booklets/toolbars: http://usability.wikimedia.org/wiki/Toolbar_customization

That requires programming knowledge. While acceptable for me, this should not remain the only way to customize the toolbar. We really should have a way for the non-programmers to do it.

I've updated the title to better reflect what I've said in comment 2.

I think that some documentation on how to customize it with the current system would be a better improvement (with some documentation it's not that difficult).

(In reply to comment #4)

I think that some documentation on how to customize it with the current system
would be a better improvement (with some documentation it's not that
difficult).

"It's not that difficult" is quite subjective. :) Ask a non-technical person to "do this inside an addOnloadHook(function() { }); call" and in 99% of the cases he/she would rather solve the problem some other way.

The minimum would be to have the code from http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js?view=markup put in MediaWiki:Common.js (or another page called from there) and put some comments like "add here the code for new buttons"/"add here new buttons in this booklet". If for some reason the whole toolbar is compromised (no idea how you can detect this, a huge try-catch perhaps?), then display the default version.

Still, a gadget-like syntax seems more appropriate to me.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM