User:MarkS/Extra edit buttons/Development notes

From Wikipedia, the free encyclopedia

[edit] Common.js

A number of the buttons were added to Common.js on this edit: [1] by User:Voice of All.

The buttons are added to mwCustomEditButtons.

[edit] Execution Order

The code seems to run in the following order:

  • The extra 11 standard buttons are added to mwCustomEditButtons in Common.js
  • user monobook.js runs
  • The standard 10 buttons are defined in mwEditButtons
  • The Firefox and Opera onLoad event (addOnloadHook(initButtons)) is fired (and XEB buttons are added)
    • IE6 onLoad event (hookEvent("load", initButtons)) is fired (bugzilla:8195 02:19, 9 December 2006 (UTC))
  • The toolbar is drawn for all the buttons (hookEvent("load", mwSetupToolbar))
  • The IE7 buttons onLoad events are fired(?)