hi, 

So i am following this example 
(https://github.com/rochacbruno/web2py_ckeditor) step by step. This is what 
i have added to a new web2py app i created. I have installed the plugin. In 
view my output does not show any CKeditor. It is just a normal form.
Does anyone know what could be the problem



*In default.py*

def test():
    form = SQLFORM.factory(
        Field('requiredfield', required=True, notnull=True),
        Field('textfield', 'text', widget=ckeditor.widget)
    )
    
    if form.accepts(request.vars, session, keepvalues=True):
        response.flash = 'Accepted'
    elif form.errors:
        response.flash = 'There are some errors'
    
    return dict(form=form)

and

def index():
    return dict(message=T('Hello World'))


*In index.html*

{{extend 'layout.html'}}

<div class="editable">
    <h1>Hello World!</h1>
    <p>This is my text. This whole content area is editable. Simply 
double-click somewhere in here
        and magically, this whole area will turn into a WYSIWYG editor. 
Pretty cool, hu?
        Go on, give it a shot!</p>
</div>

{{=ckeditor.edit_in_place('.editable', URL())}}


*In upload_file.html*

{{extend 'layout.html'}}

<h2>Upload file</h2>
{{=form}}


{{ if url != "": }}
<script type="text/javascript">
  window.opener.CKEDITOR.tools.callFunction({{=cknum}}, '{{=url}}');
</script>
{{ pass }}


*In db.py*


from plugin_ckeditor import CKEditor
ckeditor = CKEditor(db)
ckeditor.define_tables()

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to