2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: generate multiline details instead of inline

This commit is contained in:
Sam 2017-06-28 11:45:48 -04:00
parent 301731ef24
commit c1560d8195

View file

@ -15,10 +15,10 @@ function initializeDetails(api) {
actions: {
insertDetails() {
this.get("toolbarEvent").applySurround(
`[details=${I18n.t("composer.details_title")}]`,
"[/details]",
"\n" + `[details=${I18n.t("composer.details_title")}]` + "\n",
"\n[/details]\n",
"details_text",
{ multiline: false }
{ multiline: true }
);
this.set('optionsVisible', false);
}