Re: Enable users to input formatted text

2009-12-22 Thread Gabriel Farrell
If you have any trouble with tinymce look at Markdown in django.contrib.markup, especially with the "safe" extension. Nice lightweight solution. On Mon, Dec 21, 2009 at 6:22 PM, Continuation wrote: > django-tinymce looks like is what I need. > > Thanks for pointing me

Re: Enable users to input formatted text

2009-12-21 Thread Continuation
django-tinymce looks like is what I need. Thanks for pointing me to that. On Dec 21, 5:50 pm, "pjrhar...@gmail.com" wrote: > You've got to decide what you want to allow. If the users are trusted > you could allow them to input HTML, then you have to make sure its > marked

Re: Enable users to input formatted text

2009-12-21 Thread pjrhar...@gmail.com
You've got to decide what you want to allow. If the users are trusted you could allow them to input HTML, then you have to make sure its marked as safe so the HTML is not escaped.[1] Alternatively you could use a markup language that can be converted to HTML.[2] If you just want the newlines,

Re: Enable users to input formatted text

2009-12-21 Thread BobAalsma
Umm, I think you would then also invite/enable hackers to upload unwanted thingies, such as viruses and scripts... On Dec 21, 8:12 am, Continuation wrote: > I have a TextField() field that stores user entered text. However the > formatting is a bit weird, eg. new lines

Enable users to input formatted text

2009-12-20 Thread Continuation
I have a TextField() field that stores user entered text. However the formatting is a bit weird, eg. new lines are lost when displaying that field. What is the best way to retain that formatting and also enable users to format their inputs with either HTML tags or some rich text editors? -- You