Recently the TinyMCE functionality has not been working for me in client-web trunk.
The issue is here: [[EMAIL PROTECTED]:] $ nano +832 ../openerp/client-web/openerp/widgets/form.py if kind in ('text', 'text_tag') and attrs.get('html'): try: cherrypy.request.headers["User-Agent"].index('Safari') except: kind = 'html_tag' if name in myfields: print "-"*30 Adding this line fixes the problem: [[EMAIL PROTECTED]:] $ nano +832 ../openerp/client-web/openerp/widgets/form.py if kind in ('text', 'text_tag') and attrs.get('html'): try: cherrypy.request.headers["User-Agent"].index('Safari') except: kind = 'html_tag' ### fields[name]['type'] = kind ### if name in myfields: print "-"*30 I can now use TinyMCE by supplying the " html='1' " attribute to a text field in a view. You can see above how it is guarding against Safari using the TinyMCE widget, due to some issues with older versions of TinyMCE and Safari I believe. Commenting out the check for Safari I did see a few errors when trying to use it with Safari. The version of TinyMCe included with the latest client-web is very old though, over a year old. I downloaded the latest stable TinyMCE source and replaced the one in the client-web and then commented out the check for Safari. So far (light usage) it has worked well for me with Safari 3.1.2. -------------------- m2f -------------------- -- http://www.openerp.com/forum/viewtopic.php?p=26173#26173 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
