I tried to design a sleek, light weight, modular, extensible, object based, rich text editor which can be embedded into website with ease. I could not find such a one any where on the web, except for two instances which were not supported.
I started with that code and fixed many bugs, customized it, brought in more object orientation.
You can visit here. for demo.
Essentially the design is simple:
There is a Button Class which forms the parent class to all the tool bar features.
There is editor class which is an IFRAME where actual editing takes place.
Currently it just shows that the content is getting modified as expected.
Lot more needs to be done.
Next time I will sit and explain more on the classes and how inheritance is going on.