X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cb87c787916de7712a4f9fb638715e6185804711..37e03d34aec3af64d322f0c76d49dba46ee29f92:/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 81153085..39a05e52 100644
--- a/project/templates/explorer/panels/xmleditor.html
+++ b/project/templates/explorer/panels/xmleditor.html
@@ -1,55 +1,79 @@
{% load toolbar_tags %}
-{% toolbar %}
-
+
+
+
+
+{% toolbar %}
+
-
+
+ $(texteditor.frame).css({width: '100%', height: '100%'});
+
+
+
+ $('.decrease-font-size', panel).click(function() {
+ var frameBody = $('body', $(texteditor.frame).contents());
+ console.log(frameBody.css('font-size'));
+ frameBody.css('font-size', parseInt(frameBody.css('font-size')) - 2);
+ });
+
+ $('.increase-font-size', panel).click(function() {
+ var frameBody = $('body', $(texteditor.frame).contents());
+ console.log(frameBody.css('font-size'));
+ frameBody.css('font-size', parseInt(frameBody.css('font-size')) + 2);
+ });
+ this.texteditor = texteditor;
+ },
+
+ unload: function() {
+ this.texteditor = null;
+ },
+
+
+ //refresh: function() { }, // no support for refresh
+
+ saveInfo: function(saveInfo) {
+ var myInfo = {
+ url: "{% url file_xml fpath %}",
+ postData: {
+ content: this.texteditor.getCode()
+ }
+ };
+ $.extend(saveInfo, myInfo);
+ }
+};
+
+