Commits

Anonymous committed 3ffb874

Tweaks to editor

  • Participants
  • Parent commits c8792b1

Comments (0)

Files changed (2)

File tw2/yui/templates/editor.html

 <div xmlns:py="http://genshi.edgewall.org/">
-<textarea py:attrs="w.attrs"></textarea>
+<textarea py:attrs="w.attrs">$w.value</textarea>
 <script type="text/javascript">
     YAHOO.util.Event.onDOMReady(function() {
-        var myEditor = new YAHOO.widget.Editor('$w.compound_id', $w.options);
+        var myEditor = new YAHOO.widget.SimpleEditor('$w.compound_id', $w.options);
         myEditor.render();
     });
 </script>

File tw2/yui/widgets.py

         twc.JSLink(modname=__name__, filename="static/2.7.0/editor/editor-min.js"),
     ]
     template = "genshi:tw2.yui.templates.editor"
+    options = {'handleSubmit': 1}
 
     # default to a fairly large size
     rows = 20
-    cols = 75
+    cols = 100
 
 
 class TreeView(YuiWidget):