Hi all,
A long-standing issue I've had with the EditArea in web2py's Admin interface is the default font size. I don't have the best eyes, and so in Firefox I set the minimum font size to be 12. The default font size for EditArea is 10. As a result, Firefox ends up garbling the code in EditArea. This required me to manually change the font size every time I reloaded an editing page. I'm not the only one with a similar problem. Here's an old discussion on the issue from the Gluon days: http://groups.google.com/group/web2py/browse_thread/thread/8bb6718600ad886/db2f0c855daba4aa?hl=en&lnk=gst&q=font# Today I figured out how to fix the issue. The fix for this is to edit the following file: web2py/applications/admin/views/default/edit.html Find these lines of code: editAreaLoader.init({id: "body",start_highlight: true,allow_resize: "both",allow_toggle: true,language: "en",syntax: "{{=filetype}}",replace_tab_by_spaces: 4}); And just add a few extra settings: editAreaLoader.init({id: "body",start_highlight: true,allow_resize: "both",allow_toggle: true,language: "en",syntax: "{{=filetype}}",replace_tab_by_spaces: 4, font_size: 12, fullscreen: false}); The full list of parameters is available here: http://www.cdolivet.net/editarea/editarea/docs/configuration.html What I'd like to do is for users to be able to set the defaults in some kind of initialization file for the Admin interface. This kind of init file could be generally useful for things other than EditArea too. There doesn't seem to be any init file at the moment though. Does anyone else think this is a good idea? Are there any other default settings that should be moved into a user-editable init file? Are there any objections to adding an init file to the Admin interface? Sincerely, --Jonathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

