X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1c64c03bd096ac6c92bee4361926611be3d22259..653c75b6951e028fe4c68e27cc9852e45fa418a6:/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 76018ca7..3a1baf1c 100644
--- a/project/templates/explorer/panels/xmleditor.html
+++ b/project/templates/explorer/panels/xmleditor.html
@@ -1,6 +1,6 @@
{% load toolbar_tags %}
-
+
@@ -14,7 +14,7 @@ panel_hooks = {
var panel = self.contentDiv;
var textareaId = 'xmleditor-' + Math.ceil(Math.random() * 1000000000);
- $('textarea', panel).attr('id', textareaId);
+ $('textarea', panel).attr('id', textareaId);
var texteditor = CodeMirror.fromTextArea(textareaId, {
parserfile: 'parsexml.js',
@@ -31,6 +31,7 @@ panel_hooks = {
texteditor.grabKeys(
$.fbind(self, self.hotkeyPressed),
$.fbind(self, self.isHotkey) );
+
}
})
@@ -53,7 +54,12 @@ panel_hooks = {
}
};
$.extend(saveInfo, myInfo);
- }
+ },
+
+ toolbarResized: function() {
+ $('.iframe-container', self.contentDiv).css('top',
+ $('.toolbar', self.contentDiv).outerHeight() );
+ }
};