1// make sure there is a convenience button for the new syntax 2if (typeof window.toolbar !== 'undefined') { 3 toolbar[toolbar.length] = { 4 type: "format", 5 title: "insert a Magic: The Gathering card reference", 6 icon: "../../plugins/mtg/images/mtg.png", 7 key: "m", 8 open: "{{mtg:", 9 sample: "cardname", 10 close: "}}" 11 }; 12}