Page MenuHomePhabricator

Add ChessBrowser support to VisualEditor
Open, MediumPublic

Description

At the moment, if I try to edit a page with <pgn> using Visual Editor, I see some issues:

  • "JavaScript is not enabled on this page" is shown at the bottom. This is clearly wrong and must not be shown. (See T282503)
  • The tag is shown as a generic inspector, which shows a tiny window for editing raw PGN source. It should at least be larger.
  • As a nice option, the metadata such as Event, Site, Date, etc., should be editable as a form. This would be comparable to the form for adding a math formula, but for PGN it's probably much simpler.
  • As an even nicer option, it should be possible to edit the FEN visually, by clicking on a chess board

Event Timeline

The process for hooking an extension into VE looks to be documented at this MediaWiki page alongside the API documentation

ppelberg removed a project: VisualEditor.
ppelberg subscribed.

hey @Amire80 I'm going to untag the VisualEditor considering ChessBrowser's author would be responsible for implementing what this task is asking for.

Change 722267 had a related patch set uploaded (by Wugapodes; author: Wugapodes):

[mediawiki/extensions/ChessBrowser@master] WIP: Add support for visual editor

https://gerrit.wikimedia.org/r/722267

Wugapodes triaged this task as Medium priority.

After some more searching and code examples, I'm getting the bare bones of VE support. Will be documenting the process on mediawiki to try and consolidate whatever information I find