* Improved document layout in Firefox.
[redakcja.git] / platforma / static / js / main.js
index b98e1c2..3f4d30c 100644 (file)
@@ -661,7 +661,7 @@ function html(element) {
         }
         if (editable.is('.annotation-inline-box')) {
             $('*[x-annotation-box]', editable)
-                .css({width: 300, position: 'absolute', left: event.clientX - editable.offset().left + 5, top: event.clientY - editable.offset().top + 5})
+                .css({position: 'absolute', left: event.clientX - editable.offset().left + 5, top: event.clientY - editable.offset().top + 5})
                 .show();
         } else {
             $('*[x-annotation-box]').hide();
@@ -767,9 +767,10 @@ $(function() {
         parserConfig: {
             useHTMLKludges: false
         },
-        iframeClass: 'xml-iframe',
+        iframeClass: 'xml-iframe',             
         textWrapping: true,
-               /* lineNumbers: true, */
+               lineNumbers: true, 
+               width: "100%",
         tabMode: 'spaces',
         indentUnit: 0,
         initCallback: function(editor) {