- };
-
- function xmleditor_onunload(event, panel) {}
-
- panel(xmleditor_onload, xmleditor_onunload);
-})();
+
+ 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);
+ }
+};
+