Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.hooks.php |
— | — | @@ -83,6 +83,10 @@ |
84 | 84 | 'edittoolbar-tool-format-subscript-example', |
85 | 85 | /* Insert Section */ |
86 | 86 | 'edittoolbar-section-insert', |
| 87 | + 'edittoolbar-group-insert-media', |
| 88 | + 'edittoolbar-tool-insert-gallery', |
| 89 | + 'edittoolbar-tool-insert-gallery-example', |
| 90 | + 'edittoolbar-tool-insert-newline', |
87 | 91 | /* Special Characters Section */ |
88 | 92 | 'edittoolbar-section-characters', |
89 | 93 | /* Help Section */ |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -532,5 +532,45 @@ |
533 | 533 | } |
534 | 534 | } |
535 | 535 | } |
| 536 | + }, |
| 537 | + // Insert section |
| 538 | + 'insert': { |
| 539 | + labelMsg: 'edittoolbar-section-insert', |
| 540 | + groups: { |
| 541 | + 'media': { |
| 542 | + labelMsg: 'edittoolbar-group-insert-media', |
| 543 | + tools: { |
| 544 | + 'gallery': { |
| 545 | + labelMsg: 'edittoolbar-tool-insert-gallery', |
| 546 | + type: 'button', |
| 547 | + icon: 'insert-gallery.png', |
| 548 | + action: { |
| 549 | + type: 'encapsulate', |
| 550 | + options: { |
| 551 | + pre: "<gallery>\n", |
| 552 | + periMsg: 'edittoolbar-tool-insert-gallery-example', |
| 553 | + post: "\n</gallery>", |
| 554 | + } |
| 555 | + } |
| 556 | + } |
| 557 | + } |
| 558 | + }, |
| 559 | + 'other': { |
| 560 | + tools: { |
| 561 | + 'newline': { |
| 562 | + labelMsg: 'edittoolbar-tool-insert-newline', |
| 563 | + type: 'button', |
| 564 | + icon: 'insert-newline.png', |
| 565 | + action: { |
| 566 | + type: 'encapsulate', |
| 567 | + options: { |
| 568 | + pre: "<br />\n", |
| 569 | + } |
| 570 | + } |
| 571 | + } |
| 572 | + } |
| 573 | + } |
| 574 | + } |
| 575 | + |
536 | 576 | } |
537 | 577 | }; |
\ No newline at end of file |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-gallery.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-gallery.png |
___________________________________________________________________ |
Name: svn:mime-type |
538 | 578 | + application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-newline.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-newline.png |
___________________________________________________________________ |
Name: svn:mime-type |
539 | 579 | + application/octet-stream |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php |
— | — | @@ -56,6 +56,10 @@ |
57 | 57 | 'edittoolbar-tool-format-subscript-example' => 'Subscript text', |
58 | 58 | /* Insert Section */ |
59 | 59 | 'edittoolbar-section-insert' => 'Insert', |
| 60 | + 'edittoolbar-group-insert-media' => 'Media', |
| 61 | + 'edittoolbar-tool-insert-gallery' => 'Picture gallery', |
| 62 | + 'edittoolbar-tool-insert-gallery-example' => "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2", |
| 63 | + 'edittoolbar-tool-insert-newline' => 'New line', |
60 | 64 | /* Special Characters Section */ |
61 | 65 | 'edittoolbar-section-characters' => 'Special Characters', |
62 | 66 | /* Help Section */ |