Skip to content

A platform for community discussion. Free, open, simple.

FIX: formatting of wrap tag in composer.js (markdown mode) (#38608)

Renato Atilio66de3ebb909f
diff --git a/frontend/discourse/app/services/composer.js b/frontend/discourse/app/services/composer.js
index fa2f4b1e12e..d3eaf90b775 100644
--- a/frontend/discourse/app/services/composer.js
+++ b/frontend/discourse/app/services/composer.js
@@ -858,7 +858,7 @@ export default class ComposerService extends Service {
);
} else {
const wrapTag = attributesString.trim()
- ? `[wrap ${attributesString}]`
+ ? `[wrap${attributesString}]`
: "[wrap]";
toolbarEvent.applySurround(
`${wrapTag}\n`,