I tried ckeditor and I've got an editor in admin so I can insert links, so
far so good.
but the text is still rendered plain with html tags visible.

my function and db in db.py: (text field is the field I want to insert
links into)

def advanced_editor(field,text):
    return TEXTAREA(_id = str(text).replace('.','_'), _name=field.text,
_class='text ckeditor', value=text , _cols=80)

db.define_table('blog',
        Field('date','datetime',default=request.now),
        Field('image','upload'),
        Field('imageTitle','text',default="image text"),
        Field('title','text',default='imager text here...'),
        Field('text','text',default='blog text
here...',widget=advanced_editor),
        Field('votes','integer',default=0),
        Field('plus','integer',default=0),
        Field('minus','integer',default=0))
    #        format = '%(title)s')


On Wed, Dec 25, 2013 at 2:53 AM, 黄祥 <steve.van.chris...@gmail.com> wrote:

> i think you can achieve it with put the rich text editor in your form input
> ref:
> https://groups.google.com/forum/#!topic/web2py/OoZ1EI8OOmw
>
> another way is with put the html code in your input text area form or
> either use markmin.
> the first is the easiest.
>
> best regards,
> stifan
>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/yukzpnZe4GQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to