Rewrite task move position component and remove Vuejs

This commit is contained in:
Frederic Guillot
2016-11-26 16:00:52 -05:00
parent e64faae69a
commit 04ff67e26b
17 changed files with 464 additions and 247 deletions

View File

@@ -51,8 +51,8 @@ KB.component('text-editor', function (containerElement, options) {
.attr('tabindex', options.tabindex || '-1')
.attr('required', options.required || false)
.attr('autofocus', options.autofocus || null)
.attr('placeholder', options.placeholder || '')
.text(options.text)
.text(options.text) // Order is important for IE11
.attr('placeholder', options.placeholder || null)
.build();
return KB.dom('div')
@@ -124,7 +124,7 @@ KB.component('text-editor', function (containerElement, options) {
document.execCommand('ms-beginUndoUnit');
} catch (error) {}
textarea.value = replaceTextRange(text, textarea.selectionStart, textarea.selectionEnd, replacedText);
textarea.value = replaceTextRange(textarea.value, textarea.selectionStart, textarea.selectionEnd, replacedText);
try {
document.execCommand('ms-endUndoUnit');