-
- $(editor.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",
- }
- });
- };
-
- function xmleditor_onunload(event, me) {}
-
- panel(xmleditor_onload, xmleditor_onunload);
-})();
+
+ $('.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() );
+ }
+};
+