Hi Luc!

>From my expierience inheritance of dialogs is rather hard to do and also probably not meant to be done.
In the end it might be easier to actually implement a standalone dialog.

If you are interested in ways to modify existing dialogs and adding stuff to VisualEditor in general, you may want to have a look at the BlueSpiceVisualEditorConnector extension [1-5].

[1] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/tree/3.1.12/resources
[2] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/tree/3.1.12/resources/bs.vec/ui
[3] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.overrides.js
[4] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.styleInspector.js
[5] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.tags.js


--
Robert

Von: Wikitech-l <wikitech-l-bounces@lists.wikimedia.org> im Auftrag von Lucien Anti-Spam via Wikitech-l <wikitech-l@lists.wikimedia.org>
Gesendet: Dienstag, 24. November 2020 16:21
An: wikitech-l@lists.wikimedia.org <wikitech-l@lists.wikimedia.org>
Cc: Lucien Anti-Spam <lucienmp_antispam@yahoo.com>
Betreff: [Wikitech-l] VisualEditor inheriting from TransclusionNode in parser function extension?
 
Hi,

I am struggling to succeed with  inheriting from TransclusionNode in parser function extension?

Inheriting a dialog from "ve.ui.MWTransclusionDialog" contains the "Add Template" input and button,
what is the right level to inherit from if this is a supported flow?

As well as inheriting into the DM for MWTransclusion which works, but recognizes {{PAGEName}} that contains a <div> as a function parser node.

Any help would be greatly appreciated as the code is a little overwhelming.

Cheers,
Luc