Update head_tag.html
Last one, I promise
This commit is contained in:
parent
8c4b6d4601
commit
51ba2452c1
@ -1,5 +1,7 @@
|
|||||||
<script type="text/discourse-plugin" version="0.8">
|
<script type="text/discourse-plugin" version="0.8">
|
||||||
const { iconNode } = require("discourse-common/lib/icon-library");
|
const { iconNode } = require("discourse-common/lib/icon-library");
|
||||||
|
|
||||||
|
|
||||||
// TOOLBAR
|
// TOOLBAR
|
||||||
api.onToolbarCreate(toolbar => {
|
api.onToolbarCreate(toolbar => {
|
||||||
toolbar.addButton({
|
toolbar.addButton({
|
||||||
@ -33,6 +35,8 @@ api.onToolbarCreate(toolbar => {
|
|||||||
perform: e => e.applySurround('[wrap="justify"]\n', '\n[/wrap]', 'align_justify_text')
|
perform: e => e.applySurround('[wrap="justify"]\n', '\n[/wrap]', 'align_justify_text')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// EXTRAS
|
// EXTRAS
|
||||||
api.addToolbarPopupMenuOptionsCallback(() => {
|
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
return {
|
return {
|
||||||
@ -48,6 +52,8 @@ api.modifyClass("controller:composer", {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// TEXTS
|
// TEXTS
|
||||||
let translations = I18n.translations[I18n.currentLocale()].js;
|
let translations = I18n.translations[I18n.currentLocale()].js;
|
||||||
if (!translations) {
|
if (!translations) {
|
||||||
|
Loading…
Reference in New Issue
Block a user