Forums

CKEditor not showing textbox

My CKEditor is installed in the static folder and this code works well on localhost as follows:

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 text 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?

[edit by admin: formatting]

Are there any errors in the browser's web developer console when you visit the page in question?

Wow. I had never tried on chrome. It works on chrome but not on opera browser. What could be the issue?

Look in the console of the browser developer tools to see if it's raising errors or blocking access to resources or something like that.