WYSIHTML5: A better approach to rich text editing
312 points| tiff | 14 years ago |xing.github.com | reply
Twitter Bootstrap Plugin: http://jhollingworth.github.com/bootstrap-wysihtml5/
312 points| tiff | 14 years ago |xing.github.com | reply
Twitter Bootstrap Plugin: http://jhollingworth.github.com/bootstrap-wysihtml5/
[+] [-] junto|14 years ago|reply
[+] [-] sundeep_b|14 years ago|reply
[+] [-] laktek|14 years ago|reply
The spec is still not settled, but safe to use as a guideline for an implementation. If libraries align their command API implementations with the specs, it would be easy for them to port to use native commands as the browser support gets strong.
[+] [-] lunaru|14 years ago|reply
[+] [-] emn13|14 years ago|reply
The downside to markdown should be obvious:
* more code, both server and client-side (to implement the to-and-from conversion)
* more bugs (due to more code and the complexity of escaping valid input that happens to be markup in one or the other)
* less features (if the editor supports some html that doesn't map 1-to-1 to markdown, you're in trouble)
* less future-proof/platform independent (html isn't going anywhere, but that markdown variant you're using with the custom extensions you needed might be subtly different in whatever language/platform/toolkit you'd prefer in 5 years).
Html is by far the better choice. If there's an improvement to be had here, it's in using the (compatible) XHTML5 serialization to ease parsing. And it's quite likely already using that, since that's what browsers' rich-text-editing generally produces.
[+] [-] brlewis|14 years ago|reply
I've used antisamy, but there are many others and I don't know which is best. But I would call the whitelist approach in general, best practice.
[+] [-] laktek|14 years ago|reply
However, in a scenario like commenting or composing a message (where only limited editing options are available), storing in a format such as Markdown make sense.
[+] [-] geon|14 years ago|reply
[+] [-] zv|14 years ago|reply
[+] [-] ams6110|14 years ago|reply
[+] [-] bergie|14 years ago|reply
What is a table editor would essentially be a database query, with data coming from your CMS or some other system? Then instead of building a generic table by hand you could do things like Insert a table of attendees of this event, with columns displayName, company, and email.
I'll try to do some experiments with this in the summer.
[+] [-] laktek|14 years ago|reply
Check the demo - http://aloha-editor.org/builds/development/latest/src/demo/b...
[+] [-] middus|14 years ago|reply
[+] [-] drivebyacct2|14 years ago|reply
[+] [-] slikts|14 years ago|reply
[+] [-] TazeTSchnitzel|14 years ago|reply
[+] [-] decklin|14 years ago|reply
http://www.whatwg.org/specs/web-apps/current-work/multipage/...
[+] [-] batista|14 years ago|reply
I don't consider my bolds and italics to be mere style and much less I consider them mere suggestions.
Bold and italic are typographic conventions of author _intent_ (that is: semantics) with centuries of use. I put them there in purpose, and I don't want them converted to anything else via styling. Sure, someone can style "b" as "purple text with a yellow dotted underline", but I might as well make my _actual_ intention clear.
Outside of its proper context, "semantic" is just a BS notion that got popular with designers and co because it sounds sophisticated, giving rise to inane arguments similar to how many angels fit in the head of a needle.
[+] [-] SquareWheel|14 years ago|reply
[+] [-] bflesch|14 years ago|reply
[+] [-] cmelbye|14 years ago|reply
[+] [-] javan|14 years ago|reply
[+] [-] cickpass_broken|14 years ago|reply
Haven't gotten around to a github repo or fixing some pretty annoying bugs. But, there it is.
[+] [-] mgkimsal|14 years ago|reply
I'd tried to do this with the YUI and Dojo editors a couple years ago, but my JS-fu wasn't good enough. I'm possibly better now, and maybe wil try my hand at adding that to this editor (which looks nice for a lot of applications) but someone else with better skills could probably lay the foundation for a 'notes' system much better than me :)
[+] [-] simonz05|14 years ago|reply
I think this suggestion fully qualifies as something they don't want to do, "[to create] unmaintainable tag soups and inline styles".
[+] [-] cmelbye|14 years ago|reply
[+] [-] slikts|14 years ago|reply
[+] [-] DeepDuh|14 years ago|reply
[+] [-] _urga|14 years ago|reply
[+] [-] Joeri|14 years ago|reply
[+] [-] Udo|14 years ago|reply
[+] [-] dmbaggett|14 years ago|reply
Does anyone know of a JavaScript RTE that does all the text layout and formatting itself using pure JS?
[+] [-] evan_|14 years ago|reply
http://googledocs.blogspot.com/2010/05/whats-different-about...
The code isn't officially released anywhere, but someone grabbed the source, prettied it up, and put it up here: https://github.com/benjamn/kix-standalone Obviously you can't use it for anything without a proper license.
[+] [-] snookca|14 years ago|reply
Oh, and I should add that the built-in parser isn't very flexible and requires lengthy configuration.
[+] [-] WimLeers|14 years ago|reply
And more specifically: what are your thoughts on the Aloha editor?
[+] [-] unknown|14 years ago|reply
[deleted]
[+] [-] simonz05|14 years ago|reply
[+] [-] alisey|14 years ago|reply
[+] [-] cristiantincu|14 years ago|reply
[+] [-] grimboy|14 years ago|reply
[+] [-] stef25|14 years ago|reply