Topic on Talk:VisualEditor/Gadgets/Creating a custom command

P.a.a (talkcontribs)

Is this sample outdated?

Apparently the code that is passed to mw.libs.ve.addPlugin never gets a chance to run

Schnark (talkcontribs)
P.a.a (talkcontribs)

Thanks for the quick reply.

It seems like a race condition, because although it doesn't work for me from the console, it does work (slightly modified) from common.js

Reply to "Code doesn't work"