Update head_tag.html

Last one, I promise
This commit is contained in:
iunctis 2019-11-07 23:31:34 +01:00
parent 8c4b6d4601
commit 51ba2452c1

View File

@ -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) {