I am developing a javascript application in which users can edit text content with an editor.

Where can I find a javascript library for an editor that can be embedded in an application? This library should also be extensible since I would like to develop some features on top of it.