librelist archives

« back to archive

a ckeditor or tinymce for blogging

a ckeditor or tinymce for blogging

From:
alice ni
Date:
2010-09-29 @ 09:22
Hello all, I just started off with my first project in flask. I wanted to
know how would I be able to integrate a ckeditor/tinymce or any other
WYSIWYG editor for  entering text to be presented to the user.
Alice!

Re: [flask] a ckeditor or tinymce for blogging

From:
Eunjin Lee
Date:
2010-09-29 @ 10:19
Hi, alice.

here you are.

<script type=text/javascript src="{{ url_for('.static',
filename='ckeditor/ckeditor.js') }}"></script>
<script type=text/javascript src="{{ url_for('.static',
filename='ckeditor/adapters/jquery.js') }}"></script>

$(document).ready(function(){ // (s)document.ready
    $("textarea[name='editor']").ckeditor(function(){},{height:700});
}); // (e)document.ready

<textarea name='editor'>{% if item_form.data
%}{{item_form.detail.data}}{% endif %}</textarea>
<input type='hidden' name='detail' id='detail' value=''>


2010/9/29 alice ni <alice.ni19@gmail.com>:
> Hello all, I just started off with my first project in flask. I wanted to
> know how would I be able to integrate a ckeditor/tinymce or any other
> WYSIWYG editor for  entering text to be presented to the user.
> Alice!

Re: [flask] a ckeditor or tinymce for blogging

From:
alice ni
Date:
2010-09-29 @ 10:29
Thanks a lot Eugene!

On Wed, Sep 29, 2010 at 3:49 PM, Eunjin Lee <hdformat@gmail.com> wrote:

> Hi, alice.
>
> here you are.
>
> <script type=text/javascript src="{{ url_for('.static',
> filename='ckeditor/ckeditor.js') }}"></script>
> <script type=text/javascript src="{{ url_for('.static',
> filename='ckeditor/adapters/jquery.js') }}"></script>
>
> $(document).ready(function(){ // (s)document.ready
>    $("textarea[name='editor']").ckeditor(function(){},{height:700});
> }); // (e)document.ready
>
> <textarea name='editor'>{% if item_form.data
> %}{{item_form.detail.data}}{% endif %}</textarea>
> <input type='hidden' name='detail' id='detail' value=''>
>
>
> 2010/9/29 alice ni <alice.ni19@gmail.com>:
> > Hello all, I just started off with my first project in flask. I wanted to
> > know how would I be able to integrate a ckeditor/tinymce or any other
> > WYSIWYG editor for  entering text to be presented to the user.
> > Alice!
>