Re: [Wikitech-l] Running JS for parser function preview in Visual Editor

2020-04-05 Thread Jeroen De Dauw
Hey Szabó, Thanks for the pointers - much appreciated. My impression is that the approach you are talking about is great for creating a high level of integration with Visual Editor. I've looked at Kartographer which is doing something similar. However at this point I just want the map JS to be

Re: [Wikitech-l] Running JS for parser function preview in Visual Editor

2020-04-05 Thread Máté Szabó
Hi Jeroen, I think you need to register a custom DM (DataModel)[1] and CE (ContentEditable)[2] node implementation for this extension tag inside VisualEditor to control their rendering and how the user can interact with them. Unfortunately, I am not sure if there is documentation (apart from

[Wikitech-l] Running JS for parser function preview in Visual Editor

2020-04-04 Thread Jeroen De Dauw
Hey, I am maintainer of the Maps extension for MediaWiki. https://github.com/JeroenDeDauw/Maps#maps Recently I worked on improving integration with Visual Editor. Maps used to not show up as a grey box [0] since their initialization JavaScript was not being run. I got things working but am not