X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cb87c787916de7712a4f9fb638715e6185804711..8494d84b0b2f8b87ebe6bd388dfb98a2780b12f3:/project/templates/explorer/panels/xmleditor.html?ds=inline diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html index 81153085..2803b6a1 100644 --- a/project/templates/explorer/panels/xmleditor.html +++ b/project/templates/explorer/panels/xmleditor.html @@ -6,50 +6,96 @@ - + + $(texteditor.frame).css({width: '100%', height: '100%'}); + + $('#toolbar-buttons li').wTooltip({ + delay: 1000, + style: { + border: "1px solid #7F7D67", + opacity: 0.9, + background: "#FBFBC6", + padding: "1px", + fontSize: "12px", + } + }); + + this.texteditor = texteditor; + }, + + unload: function() { + this.texteditor = null; + }, + + + refresh: function(hn) { + // TODO + return true; + }, + + saveInfo: function(hn, saveInfo) { + var myInfo = { + url: "{% url file_xml fpath %}", + postData: { + content: this.texteditor.getCode() + } + }; + $.extend(saveInfo, myInfo); + } +}; + +