Intro to Google's open source JavaScript rich text / HTML editor
closuretools.blogspot.com
closuretools.blogspot.com
I'm very much interested in a basic rich-text editor that is either uses jQuery or is just framework independent. I've liked 37signals's wysihat, but it uses Prototype. I'm sort of working on porting it to jQuery, but that takes time.
http://code.google.com/closure/compiler/
The general philosophy is: for development, loading lots of files is ok and in some cases easier to debug. For production, the compiler will often strip out much more code than just minification would.
It does the job and Ive found it easy to hack/patch when needed.
I'd be interested in seeing an open implementation of the editor Google is now using with Google Docs, where they completely avoid using contenteditable.
It's nice to see Google is trying to do something about it and making it easier to implement an RTE with projects like this, but it would be nicer if they would push other browser builders to standardise.
Does anybody know about javascript rich text / HTML editor, that could easily show small popup under carret (or certain word) while the user is typing? I mean something like the spell-checker in this google wave demonstration - see at 0:44:40 http://www.youtube.com/watch?v=v_UyVmITiYQ Or lets say, you want to implement something like this http://doc.trolltech.com/4.6/tools-customcompleter.html but in web browser. How would you go about it?
Do you think this is what the new m.youtube.com HTML5 site is built in? Is Closure a replacement for GWT?
source: http://code.google.com/closure/
Closure Compiler: A compiler that takes Javascript as input and produces Javascript as output. Removes dead code, does various optimizations, and usually beats other minifiers by a small but significant margin.
Closure Templates: a templating system that generates Java or Javascript code. Handy if you want to generate a bunch of HTML from templates in Javascript, and you don't want to write all that by hand.
<div style="margin-left: 40px;">one</div>
While IE produces:
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr> one</BLOCKQUOTE>
Having written code to normalize the junk produced by a simple contentEditable editor I hate this kind of thing - there are editors out there that produce relatively nice well-formed XHTML.