Page MenuHomePhabricator

CodeEditor extension should provide a Vue component of the Ace editor (so WikiLambda doesn't have to)
Open, LowPublic

Description

It would be nice to only have one copy of this library in production.

Success criteria:

  • The CodeEditor extension provides a Vue component that it and other extensions can use to provide an Ace editor
    • This will need to provide an API for reading/writing content to the display (and setting language/etc.)
  • The WikiLambda code switches from its copy of Ace to CodeEditor's via its component, and we delete its copy.
  • [Stretch] The CodeEditor extension switches to using the Vue component rather than its current direct model.

Event Timeline

An editor component feels to me like something that would fit more with MediaWiki-extensions-CodeMirror than with SyntaxHighlight, but maybe I am missing a connection here?

An editor component feels to me like something that would fit more with MediaWiki-extensions-CodeMirror than with SyntaxHighlight, but maybe I am missing a connection here?

You're right; I was going by the existing VE SyntaxHighlight editor, but that just re-uses the MWAceEditorWidget that VE-MW provides which indeed wraps ext.codeEditor.ace from the CodeEditor extension.

Jdforrester-WMF renamed this task from SyntaxHighlight extension should provide a Vue component of the Ace editor (so WikiLambda doesn't have to) to CodeEditor extension should provide a Vue component of the Ace editor (so WikiLambda doesn't have to).Aug 18 2021, 12:00 AM
Jdforrester-WMF edited projects, added CodeEditor, Editing-team; removed SyntaxHighlight.