X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1c64c03bd096ac6c92bee4361926611be3d22259..c94e18af76ba34ec6d4b3bcedb44c486e101f2b2:/project/templates/explorer/panels/xmleditor.html 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() ); + } };