summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/text_markdown.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-21 10:37:53 +0000
committerPhil Hughes <me@iamphill.com>2018-12-21 10:37:53 +0000
commit3019a567f0795e8611bddd2b108cbcb5c7aedafa (patch)
tree0b4e60871ec53a1a38abad339643074dd9303277 /app/assets/javascripts/lib/utils/text_markdown.js
parentc20f0564015be67ac7871abbd0a2ed8762484cea (diff)
downloadgitlab-ce-3019a567f0795e8611bddd2b108cbcb5c7aedafa.tar.gz
Fixes the markdown toolbar buttons
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55618
Diffstat (limited to 'app/assets/javascripts/lib/utils/text_markdown.js')
-rw-r--r--app/assets/javascripts/lib/utils/text_markdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/utils/text_markdown.js b/app/assets/javascripts/lib/utils/text_markdown.js
index c095a017866..1254ec798a6 100644
--- a/app/assets/javascripts/lib/utils/text_markdown.js
+++ b/app/assets/javascripts/lib/utils/text_markdown.js
@@ -82,7 +82,7 @@ export function insertMarkdownText({
tag,
cursorOffset,
blockTag,
- selected,
+ selected = '',
wrap,
select,
}) {
@@ -212,7 +212,7 @@ export function addMarkdownListeners(form) {
blockTag: $this.data('mdBlock'),
wrap: !$this.data('mdPrepend'),
select: $this.data('mdSelect'),
- tagContent: $this.data('mdTagContent').toString(),
+ tagContent: $this.data('mdTagContent'),
});
});
}