X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e6ff1800f3b0c262d1a4d55001c376a1d9e9241a..dba809feb44cd1c4d155f3e3254a1cca5323f95f:/project/templates/explorer/panels/xmleditor.html
diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html
index ea4c4433..74a68776 100644
--- a/project/templates/explorer/panels/xmleditor.html
+++ b/project/templates/explorer/panels/xmleditor.html
@@ -1,55 +1,69 @@
{% load toolbar_tags %}
+{% toolbar toolbar_groups toolbar_extra_group %}
-{% toolbar %}
-
+
+panel_hooks = {
+ load: function () {
+ var self = this;
+ var panel = self.contentDiv;
-
+
+ $('.CodeMirror-content-wrapper').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', this.contentDiv).css('top',
+ $('.toolbar', this.contentDiv).outerHeight() );
+ }
+};
+
+