diff --git a/js/admin/dist/app.js b/js/admin/dist/app.js index 3a6e9db20..bee498d02 100644 --- a/js/admin/dist/app.js +++ b/js/admin/dist/app.js @@ -609,7 +609,7 @@ exports.System = System; ; var m = (function app(window, undefined) { "use strict"; - var VERSION = "v0.2.1"; + var VERSION = "v0.2.2-rc.1"; function isFunction(object) { return typeof object === "function"; } @@ -912,22 +912,19 @@ var m = (function app(window, undefined) { var nodes = cached.nodes; if (!editable || editable !== $document.activeElement) { if (data.$trusted) { - clear(nodes, cached); - nodes = injectHTML(parentElement, index, data); - } - //corner case: replacing the nodeValue of a text node that is a child of a textarea/contenteditable doesn't work - //we need to update the value property of the parent textarea or the innerHTML of the contenteditable element instead - else if (parentTag === "textarea") { - parentElement.value = data; - } - else if (editable) { - editable.innerHTML = data; - } - else { - //was a trusted string - if (nodes[0].nodeType === 1 || nodes.length > 1) { - clear(cached.nodes, cached); - nodes = [$document.createTextNode(data)]; + clear(nodes, cached) + nodes = injectHTML(parentElement, index, data) + } else if (parentTag === "textarea") { + //