diff MoinMoin/PageGraphicalEditor.py @ 5646:e45e3ae9e540

scrolling the text editor to the double clicked line If you have edit_on_doubleclick enabled (either by configuration default or by user preferences), double clicking into the wiki page text will enter edit mode and (for the text editor) position the cursor near the place where you clicked (for some browsers it will be the correct line, for others it will be just near). Also, if you are doing a preview of your edit, you can also click into the preview to scroll the editor to a position near to the line where you clicked. See cfg.checkbox_defaults' 'edit_on_doubleclick' member for modifying the default. Thanks to Radomir Dopieralski and Roger D. Haase for implementing and testing this.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 04 Apr 2010 13:31:54 +0200
parents 268004c7b206
children 5b04b7edee94
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sat Apr 03 12:17:32 2010 +0200
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Apr 04 13:31:54 2010 +0200
@@ -214,6 +214,7 @@
                      'lock_secs': lock_secs,
                     }) or '',
             editor_mode=1,
+            allow_doubleclick=1,
         )
 
         request.write(request.formatter.startContent("content"))