I noted that it was a browser compatibility issue.
Works well on chrome but not on opera.
Regards
On Saturday, June 5, 2021 at 1:58:26 PM UTC+3 Maurice Waka wrote:
> I have this code that works well on localhost.
>
> from plugin_ckeditor import CKEditor
> ckeditor.define_tables()
> track_changes(True)
>
> db = DAL( "postgres://mauricewaka:b3t1232a##@localhost:5432/wakadb")#,
> migrate=False)
>
> auth = Auth(db, hmac_key=Auth.get_or_create_key())
> auth.define_tables(username=True, signature=False)
> crud, service, plugins = Crud(db), Service(), PluginManager()
> current.db = db
> current.auth = auth
>
> def widget(**kwargs):
> return lambda field, value, kwargs=kwargs:
> SQLFORM.widgets[field.type].widget(field, value, **kwargs)
>
> db.define_table( "books",
> Field('name', 'string'),
> Field('definitions', 'text', length= 1000000,
> default="We'll update soon.", notnull=True, widget=ckeditor.widget,
> represent=lambda content, row: XML(content, sanitize=True)),
> #Field('definitions', 'text', length= 1000000,
> default="We'll update soon.", notnull=True), #Field is available for
> edit/posting data
> )
>
> When I try the app on 'pythonanywhere.com' the fields are hidden from the
> user and cant edit. When I remove the widget, then the fields is available.
> Obviously there is an issue with ckEditor. The version I used is ckEditor4.
> What could be the issue?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/a780c020-c1c3-420c-8c50-515b2260fb84n%40googlegroups.com.