X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/65048f64d018c105be3921ca4bcb9f5183e2382e..1e1651db11ec96ad6cf29bdf2f4db4fea80d42f4:/project/templates/explorer/file_xml.html?ds=sidebyside
diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html
index b408cc5e..401d6893 100644
--- a/project/templates/explorer/file_xml.html
+++ b/project/templates/explorer/file_xml.html
@@ -20,19 +20,27 @@
$('#images').data('lastScroll', -1000);
});
});
-
+
var editor = CodeMirror.fromTextArea("id_text", {
parserfile: 'parsexml.js',
path: "/static/js/codemirror/",
stylesheet: "/static/css/xmlcolors.css",
parserConfig: {useHTMLKludges: false}
});
-
+
+ $('iframe').load(function() {
+ $($('iframe').contents()).scroll(function() {
+ var percentScrolled = $('body', this).scrollTop() / $('body', this).height();
+ $('#images-wrap').scrollTop(percentScrolled * $('#images').height());
+ });
+ })
+
addEditorButton('utwór', function(text) { return '
Aby zobaczyÄ obrazki wybierz folder z obrazkami powyżej.
+Aby zobaczyÄ obrazki wybierz folder z obrazkami powyżej.
+