Fix escaping issue for Markdown editor

This commit is contained in:
Frédéric Guillot
2018-05-03 15:15:50 -07:00
parent 46cefbc2ba
commit c8df8a7c8c
3 changed files with 6 additions and 4 deletions

View File

@@ -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);