X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fa300c83de0c9788beb4e833c2003618e7d20646..0da45be34c7019ee362d1892e92dd53e743933b6:/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 ea4c4433..3f74017d 100644 --- a/project/templates/explorer/panels/xmleditor.html +++ b/project/templates/explorer/panels/xmleditor.html @@ -1,55 +1,64 @@ {% load toolbar_tags %} +{% toolbar toolbar_groups toolbar_extra_group %} -{% toolbar %} -
+
+panel_hooks = { + load: function () { + var self = this; + var panel = self.contentDiv; - + + $(texteditor.frame).css({width: '100%', height: '100%'}); + this.texteditor = texteditor; + self._endload(); + }, + + unload: function() { + this.texteditor = null; + }, + + + //refresh: function() { }, // no support for refresh + + saveInfo: function(saveInfo) { + var myInfo = { + url: "{% url file_xml fileid %}", + postData: { + content: this.texteditor.getCode() + } + }; + $.extend(saveInfo, myInfo); + }, + + toolbarResized: function() { + $('.iframe-container', self.contentDiv).css('top', + $('.toolbar', self.contentDiv).outerHeight() ); + } +}; + +