X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c7917ce18f0f62eac89e1eb4b6ae6d8c48133600..308aa7c7d75b50a4b36a70681b5e012dbd023c11:/project/templates/explorer/panels/xmleditor.html
diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html
index 350f6e85..3a1baf1c 100644
--- a/project/templates/explorer/panels/xmleditor.html
+++ b/project/templates/explorer/panels/xmleditor.html
@@ -1,55 +1,65 @@
 {% load toolbar_tags %}
 
-{% toolbar %}
-
+
 	
 
 
+{% toolbar %}
+
 
 
-
+
+        $(texteditor.frame).css({width: '100%', height: '100%'});    
+        this.texteditor = texteditor;
+    },
+
+	unload: function() { 
+		this.texteditor = null;
+	},
+
+
+	//refresh: function() { }, // no support for refresh
+
+	saveInfo: function(saveInfo) {
+		var myInfo = {
+			url: "{% url file_xml fpath %}", 
+			postData: {
+				content: this.texteditor.getCode()
+			} 
+		};
+		$.extend(saveInfo, myInfo);
+	},
+
+        toolbarResized: function() {
+            $('.iframe-container', self.contentDiv).css('top',
+                    $('.toolbar', self.contentDiv).outerHeight() );
+        }
+};
+
+