How to make a WYSIWYG editor in Javascript
Another straight to the point solution

Different browsers support different set of functions. You can see which browser supports what functions here.
Because of the above some additional code should be written to "hack" the browsers, but I didn't write anything like this in order to make the example as simple as possible.
Here's the demo. The code is licensed under MIT. Icons are part of Silk collection by FamFamFam.

You can download the code here:
Comments