El Tue, 25 Mar 2014 16:37:46 -0700 (PDT) Tim Richardson <t...@growthpath.com.au> escribió:
> try this > https://github.com/timrichardson/web2py_ckeditor4/releases/download/R-0.3/web2py.plugin.ckeditor.w2p > Hi, I'm having a really hard struggle with this, and so far I am really sure that is not a ckeditor plugin error, but it is referred to. I have changed the default template for my app, to one still boostrap based, but to version 3, and made chages according to this[0] guide. When I set {{extend 'layout.html'}}, everything works well but when a change to {{extend 'my-custom-layout.html'}}, seems to be no problem but the form elements supposed to have the ckeditor widgets show up as regular text widgets. Only hint I have is one line in firebug console saying: TypeError: jQuery(...).ckeditor is not a function jQuery('#posts_post_content').ckeditor(config); The whole script code marked as error is: <script type="text/javascript"> function ckeditor_config() { return { contentsCss: ['/myapp/static/css/base.css','/myapp/static/plugin_ckeditor/contents.css'], filebrowserUploadUrl: '/myapp/plugin_ckeditor/upload', filebrowserBrowseUrl: '/myapp/plugin_ckeditor/browse', toolbar: [ {name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, {name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'SpellChecker', 'Scayt']}, {name: 'links', items: ['Link', 'Unlink', 'Anchor']}, {name: 'insert', items: ['Image', 'Flash', 'Table', 'SpecialChar']}, {name: 'tools', items: ['Maximize', 'ShowBlocks', '-', 'Source']}, '/', {name: 'styles', items: ['Format', 'Font', 'FontSize']}, {name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat']}, {name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']}, ], scayt_autoStartup: true, } } jQuery(function() { var config = ckeditor_config(); jQuery('#posts_post_content').ckeditor(config); <!--fail--> }); </script> I guess I'm missing some script to include but not shure which one. Jquery, web2py_ajax, and everything else is called in the custom-layout file. Thanks in advance. Marco [0] http://www.web2pyslices.com/slice/show/1516/adapt-a-css-template-to-web2py-layouthtml -- 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.