From 3019a567f0795e8611bddd2b108cbcb5c7aedafa Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 21 Dec 2018 10:37:53 +0000 Subject: Fixes the markdown toolbar buttons Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55618 --- app/assets/javascripts/lib/utils/text_markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/assets/javascripts') 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'), }); }); } -- cgit v1.2.3