X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1c64c03bd096ac6c92bee4361926611be3d22259..4419f93a01685b9864a6e78cb905c803ec0970b0:/project/templates/explorer/panels/xmleditor.html diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html index 76018ca7..5c622bbf 100644 --- a/project/templates/explorer/panels/xmleditor.html +++ b/project/templates/explorer/panels/xmleditor.html @@ -1,6 +1,6 @@ {% load toolbar_tags %} -
+
@@ -14,9 +14,9 @@ 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, { + var texteditor = CodeMirror.fromTextArea(textareaId, { parserfile: 'parsexml.js', path: "{{STATIC_URL}}js/codemirror/", stylesheet: "{{STATIC_URL}}css/xmlcolors.css", @@ -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() ); + } };