Commits

fab31  committed d3a4651

Use row before cols to avoid a firefox bug

  • Participants
  • Parent commits 37e4777

Comments (0)

Files changed (2)

File drink/objects/markdown.py

       $("#%(id)s").markItUp(mySettings);
    });
 </script>
-<textarea id="%(id)s" name="%(name)s" cols="80" rows="25">%(value)s</textarea>
+<textarea id="%(id)s" name="%(name)s" rows="25" cols="80">%(value)s</textarea>
     ''')
 
 

File drink/static/markitup/sets/markdown/set.js

         if (! opts)
             $.extend(o, opts)
         var apply_editor = function(data) {
-            var html = $('<form id="auto_edit_form" action="'+source+'edit" method="post"><input type="hidden" name="_dk_fields" value="content" /><textarea id="md_'+me.uuid+'_editor" name="content" cols="'+o.cols+'" rows="'+o.rows+'">'+(data || o.data)+'</textarea></form>');
+            var html = $('<form id="auto_edit_form" action="'+source+'edit" method="post"><input type="hidden" name="_dk_fields" value="content" /><textarea id="md_'+me.uuid+'_editor" name="content" rows="'+o.rows+'" cols="'+o.cols+'">'+(data || o.data)+'</textarea></form>');
             $('#'+me.uuid).html(html);
 //            $('#'+me.uuid).addClass('markItUp');
             var settings = new Object();