summaryrefslogtreecommitdiff
path: root/assets/js/components/text-editor.js
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-05-03 15:15:50 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-05-03 15:15:50 -0700
commitc8df8a7c8cd73f680fa2d0422d93e2ed29e2fd16 (patch)
tree9675e0f4e0360130f9c0d0cad3772f4675de991b /assets/js/components/text-editor.js
parent46cefbc2baf2ea66024073d1eb3a254fa95fd6b1 (diff)
Fix escaping issue for Markdown editor
Diffstat (limited to 'assets/js/components/text-editor.js')
-rw-r--r--assets/js/components/text-editor.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/components/text-editor.js b/assets/js/components/text-editor.js
index 57bc0f78..e9ab4c80 100644
--- a/assets/js/components/text-editor.js
+++ b/assets/js/components/text-editor.js
@@ -62,7 +62,8 @@ KB.component('text-editor', function (containerElement, options) {
}
// Order is important for IE11 (especially for the placeholder)
- textareaElement.text(options.text);
+ var textWrapper = KB.dom(containerElement).find('script');
+ textareaElement.text(textWrapper.innerText);
if (options.placeholder) {
textareaElement.attr('placeholder', options.placeholder);