[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wikitech-l
Subject:    Re: [Wikitech-l] VisualEditor inheriting from TransclusionNode in parser function extension?
From:       Robert Vogel <vogel () hallowelt ! com>
Date:       2020-11-25 8:50:19
Message-ID: AM0PR08MB446861FE8E6A6B2589C66942AEFA0 () AM0PR08MB4468 ! eurprd08 ! prod ! outlook ! com
[Download RAW message or body]

Hi Luc!

From my expierience inheritance of dialogs is rather hard to do and also pr=
obably 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 t=
o VisualEditor in general, you may want to have a look at the BlueSpiceVisu=
alEditorConnector extension [1-5].

[1] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditor=
Connector/tree/3.1.12/resources
[2] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditor=
Connector/tree/3.1.12/resources/bs.vec/ui
[3] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditor=
Connector/blob/3.1.12/resources/bluespice.visualEditorConnector.overrides.j=
s
[4] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditor=
Connector/blob/3.1.12/resources/bluespice.visualEditorConnector.styleInspec=
tor.js
[5] https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditor=
Connector/blob/3.1.12/resources/bluespice.visualEditorConnector.tags.js


--
Robert
________________________________
Von: Wikitech-l <wikitech-l-bounces@lists.wikimedia.org> im Auftrag von Luc=
ien 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 pars=
er 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 Tem=
plate" 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 recog=
nizes {{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


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> Hi Luc!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> From my expierience \
inheritance of dialogs is rather hard to do and also probably not meant to be \
done.</div> <div style="font-family: Calibri, Arial, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> In the \
end it might be easier to actually implement a standalone dialog.</div> <div \
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> 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].<br> </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> <br>
[1] <a href="https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/tree/3.1.12/resources" \
id="LPlnk345447"> https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/tree/3.1.12/resources</a><br>
 [2] <a href="https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/tree/3.1.12/resources/bs.vec/ui" \
id="LPlnk417099"> https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/tree/3.1.12/resources/bs.vec/ui</a><br>
 [3] <a href="https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.overrides.js" \
id="LPlnk281398"> https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEdi \
torConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.overrides.js</a><br>
 [4] <a href="https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorC \
onnector/blob/3.1.12/resources/bluespice.visualEditorConnector.styleInspector.js" \
id="LPlnk599851"> https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEdi \
torConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.styleInspector.js</a><br>
 [5] <a href="https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.tags.js" \
id="LPlnk"> https://github.com/wikimedia/mediawiki-extensions-BlueSpiceVisualEditorConnector/blob/3.1.12/resources/bluespice.visualEditorConnector.tags.js</a><br>
 <div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
                color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
--</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> Robert<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>Von:</b> Wikitech-l \
&lt;wikitech-l-bounces@lists.wikimedia.org&gt; im Auftrag von Lucien Anti-Spam via \
Wikitech-l &lt;wikitech-l@lists.wikimedia.org&gt;<br> <b>Gesendet:</b> Dienstag, 24. \
November 2020 16:21<br> <b>An:</b> wikitech-l@lists.wikimedia.org \
&lt;wikitech-l@lists.wikimedia.org&gt;<br> <b>Cc:</b> Lucien Anti-Spam \
&lt;lucienmp_antispam@yahoo.com&gt;<br> <b>Betreff:</b> [Wikitech-l] VisualEditor \
inheriting from TransclusionNode in parser function extension?</font> \
<div>&nbsp;</div> </div>
<div>
<div class="x_ydpf6fd479ayahoo-style-wrap" style="font-family:Helvetica \
Neue,Helvetica,Arial,sans-serif; font-size:13px"> <div \
id="x_ydpf6fd479ayiv0557380758" style=""> <div style="">
<div class="x_ydpf6fd479ayiv0557380758yahoo-style-wrap" style="">
<div dir="ltr" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif; \
font-size:13px"> Hi,</div>
<div dir="ltr" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif; \
font-size:13px"> <br>
</div>
<div dir="ltr" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif; \
font-size:13px"> I am struggling to succeed with&nbsp;<span>&nbsp;inheriting from \
TransclusionNode in parser function extension?</span></div> <div dir="ltr" \
style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif; font-size:13px"> \
<span><br> </span></div>
<div dir="ltr" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif; \
font-size:13px"> <span>Inheriting a dialog from \
&quot;<span>ve.ui.MWTransclusionDialog&quot; contains the &quot;Add Template&quot; \
input and button,</span></span></div> <div dir="ltr" style="font-family:Helvetica \
Neue,Helvetica,Arial,sans-serif; font-size:13px"> <span><span>what is the right level \
to inherit from if this is a supported flow?</span></span></div> <div dir="ltr" \
style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif; font-size:13px"> <br>
</div>
<div dir="ltr" style="">As well as inheriting into the DM for MWTransclusion which \
works, but recognizes {{PAGEName}} that contains a &lt;div&gt; as a function parser \
node.</div> <div dir="ltr" style=""><br>
</div>
<div dir="ltr" style="">Any help would be greatly appreciated as the code is a little \
overwhelming.</div> <div dir="ltr" style=""><br>
</div>
<div dir="ltr" style="">Cheers,</div>
<div dir="ltr" style="">Luc</div>
<div dir="ltr" style="">&nbsp;</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>


[Attachment #4 (unknown)]

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic