1. Go here http://ckeditor.com/download and download CKEditor. I just use
the Standard Package.
2. Open the zip file that you downloaded and copy the entire ckeditor
folder to web2py/applications/your_app/static/js
3. Add this line to your layout.html after jquery is loaded
<script src="{{=URL('static', 'js/ckeditor/ckeditor.js')}}"></script>
To use ckeditor you are going to replace a textarea control with ckeditor.
To do so, add the following to your view:
<script type="text/javascript">
$(document).ready(function() {
CKEDITOR.replace('comment');
});
</script>
comment is the 'name' of the textarea control I'm replacing.
Use firebug to figure out what the name of your textarea control is.
Lots of documentation available here: http://docs.ckeditor.com/#!/guide
Hope this helps.
-Jim
On Tuesday, April 21, 2015 at 5:59:01 AM UTC-5, Dmitry Ermolaev wrote:
>
> How use ckeditor in FORM - not SQLFORM ??
>
> среда, 18 июня 2014 г., 12:56:48 UTC+3 пользователь Sharjeel Ali Shaukat
> написал:
>>
>> i m using ckeditor here i want to show runtime preview in div and also
>> using its options like Bold button dont highlights the text and are not
>> working perfectly
>>
>
--
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].
For more options, visit https://groups.google.com/d/optout.