Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/domchristie/eddie
https://github.com/domchristie/eddie
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/domchristie/eddie
- Owner: domchristie
- Created: 2011-11-02T22:16:22.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-02T22:37:19.000Z (about 13 years ago)
- Last Synced: 2023-04-09T21:37:17.705Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eddie
A basis for creating rich text editors on the web.
As many developers/designers have found, there isn't a single rich text editor that does exactly what they want, particularly from the UI perspective. This has consequently led to developers creating their own from scratch.
## Aims of this project:
* to be UI free i.e. expose a set of methods that mark up the content, but leave the UI implementation open.
* to normalize the output of contentEditable across browsers, creating nice, semantic markup (perhaps one for another library?)
* to limit the permitted HTML elements to the Markdown subset (do you _really_ need more?)## Proposed API
Something along these lines:
var editable = document.getElementsById('editable'),
editor = new Eddie(editable);
onSomeEvent(editor.makeBold);