summaryrefslogtreecommitdiff
path: root/assets/js/components/text-editor.js
diff options
context:
space:
mode:
authorRafael de Camargo <rafacamargo123@gmail.com>2019-07-23 01:26:03 -0300
committerRafael de Camargo <rafacamargo123@gmail.com>2019-07-23 01:26:03 -0300
commit21a3634fd131a0f1d6128c27ea6c582661a863f0 (patch)
tree8d17b0179e7978883e8c70927959cc0c2c5a61b8 /assets/js/components/text-editor.js
parent97aa9e47e0386abb307fa482ce79e076e1515e29 (diff)
Fix html parsing on markdown editor
Closes #4243
Diffstat (limited to 'assets/js/components/text-editor.js')
-rw-r--r--assets/js/components/text-editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/components/text-editor.js b/assets/js/components/text-editor.js
index e9ab4c80..1da8f0d9 100644
--- a/assets/js/components/text-editor.js
+++ b/assets/js/components/text-editor.js
@@ -63,7 +63,7 @@ KB.component('text-editor', function (containerElement, options) {
// Order is important for IE11 (especially for the placeholder)
var textWrapper = KB.dom(containerElement).find('script');
- textareaElement.text(textWrapper.innerText);
+ textareaElement.html(textWrapper.innerHTML);
if (options.placeholder) {
textareaElement.attr('placeholder', options.placeholder);