We've found a library for the wysiwyg editor.
Is name is tinymce and is under LGPL license.