v1.1 - Extra line on align buttons
I added by default an extra line on the align button for a better support of the underline button
This commit is contained in:
parent
450e22c4df
commit
01b6792f22
@ -4,6 +4,6 @@
|
|||||||
"license_url": null,
|
"license_url": null,
|
||||||
"about_url": "https://www.mon-discourse.fr/themes/md-composer-extras/",
|
"about_url": "https://www.mon-discourse.fr/themes/md-composer-extras/",
|
||||||
"authors": "Steven",
|
"authors": "Steven",
|
||||||
"theme_version": "1.0",
|
"theme_version": "1.1",
|
||||||
"learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
|
"learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ api.onToolbarCreate(toolbar => {
|
|||||||
id: "align_center_button",
|
id: "align_center_button",
|
||||||
group: "extras",
|
group: "extras",
|
||||||
icon: "align-center",
|
icon: "align-center",
|
||||||
perform: e => e.applySurround('<div align="center">', '</div>', 'align_center_text')
|
perform: e => e.applySurround('<div align="center">\n\n', '\n</div>', 'align_center_text')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
api.onToolbarCreate(toolbar => {
|
api.onToolbarCreate(toolbar => {
|
||||||
@ -24,7 +24,7 @@ api.onToolbarCreate(toolbar => {
|
|||||||
id: "align_right_button",
|
id: "align_right_button",
|
||||||
group: "extras",
|
group: "extras",
|
||||||
icon: "align-right",
|
icon: "align-right",
|
||||||
perform: e => e.applySurround('<div align="right">', '</div>', 'align_right_text')
|
perform: e => e.applySurround('<div align="right">\n\n', '\n</div>', 'align_right_text')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
api.onToolbarCreate(toolbar => {
|
api.onToolbarCreate(toolbar => {
|
||||||
@ -32,7 +32,7 @@ api.onToolbarCreate(toolbar => {
|
|||||||
id: "align_justify_button",
|
id: "align_justify_button",
|
||||||
group: "extras",
|
group: "extras",
|
||||||
icon: "align-justify",
|
icon: "align-justify",
|
||||||
perform: e => e.applySurround('<div align="justify">', '</div>', 'align_justify_text')
|
perform: e => e.applySurround('<div align="justify">\n\n', '\n</div>', 'align_justify_text')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user