X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d61535cf50c7a8cb597db7f1d9681901a06efaa5..b3f4fee8a2f01bf946bf28f9abd8b782e67dc186:/src/wlxml/wlxml.js?ds=inline diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 0f6fa20..9b852ae 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -1,6 +1,7 @@ define([ + 'libs/jquery', 'smartxml/smartxml' -], function(smartxml) { +], function($, smartxml) { 'use strict'; @@ -105,7 +106,7 @@ $.extend(WLXMLDocument.prototype, { ElementNodeFactory: WLXMLElementNode, loadXML: function(xml) { - smartxml.Document.prototype.loadXML.call(this, xml); + smartxml.Document.prototype.loadXML.call(this, xml, {silent: true}); $(this.dom).find(':not(iframe)').addBack().contents() .filter(function() {return this.nodeType === Node.TEXT_NODE;}) .each(function() {