Commits

Anonymous committed 3ffb874

Tweaks to editor

Comments (0)

Files changed (2)

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>

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):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.