MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions

Content deleted Content added
make the table button do something intelligent when text is selected per request on talk
Changed 'class="wikitable"' to 'class="wikitable" border="1"', so the tables still have borders for instance when copied to emails. Per discussion at MediaWiki talk:Common.css.
Line 78:
"imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
"speedTip": "Insert a table",
"tagOpen": '{| class="wikitable" border="1"\n|',
"tagClose": "\n|}",
"sampleText": "-\n! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"};