News for hackers. Stuff that matters.
Re:Our tiny jQuery/Bootstrap rich text editor is now open-so... by phillmv on Sunday April 07, 2013 @10:45AM (#5507352)
It looks good, but it's hard to use. They added this whole layer of… sanitization? that strips out all sorts of tags. I'm open to it having been PEBKAC but I recall struggling with it

There's definitely a need for a good bootstrap wysiwig form.

Re:Our tiny jQuery/Bootstrap rich text editor is now open-so... by gojko on Sunday April 07, 2013 @10:51AM (#5507378)
some cleanup might be good, eg when you select everything using cmd+a, then delete, some browser leave a <br/> in the content.

I didn't like forced sanitization in wysihtml5, so we added an optional method .cleanHtml - you can just use the normal jquery html method to get the non sanitized contents, or call cleanHtml() to get trailing empty divs, <br/> and whitespace removed