1.0.5 • Published 6 years ago
spell-editor v1.0.5
spell is a fork of pell, the simplest and smallest WYSIWYG text editor for web, with no dependencies
Try it online
https://sylvainpolletvillard.github.io/spell/demo.html
Differences with original pell
More features:
- superscript / subscript
- text align left/center/right/justify
- indent / outdent
- font family
- font size
- text foreground color and highlight color
- more headings
- clear formatting
- unlink
- insert video
- copy / cut/ paste
- undo / redo
Even smaller than the original: 912 bytes minified and gzipped
- Custom icon font
- Less dev dependencies, bring your own transpiler if needed
- Actions are spread accross different action bars
- No config, edit the source directly and comment the actions you don't want
Size
library | size (min+gzip) | size (min) | jquery | bootstrap |
---|---|---|---|---|
spell | 912B | 1.61kB | ||
pell | 1.38kB | 3.54kB | ||
medium-editor | 27kB | 105kB | ||
quill | 43kB | 205kB | ||
ckeditor | 163kB | 551kB | ||
summernote | 26kB | 93kB | x | x |
froala | 52kB | 186kB | x | |
tinymce | 157kB | 491kB | x |
Installation and Usage
<link rel="stylesheet" type="text/css" href="spell.css">
<div id="container"></div>
<script>
import { spell } from 'spell-editor/spell'
document.getElementById('container').appendChild(spell())
</script>
License
MIT