Ember addon for simplest and smallest (1kB) WYSIWYG text editor for web, with no dependencies
An Ember Component that uses under the hood the great Pell micro 1KB WYSIWYG editor (https://github.com/jaredreich/pell) that doesn't require jQuery.
5+ ✔ | 4+ ✔ | 9+ ✔ | 11.6+ ✔ | 5+ ✔ |
https://ember-twiddle.com/3b21c63730594b39d2b9cbfa8f963803
ember install ember-pell
You can declare value variable in your controller or parent component:
// app/controllers/task.js
import Controller from '@ember/controller';
export default class TaskController extends Controller {
value = '<h1>Some html</h1>';
options = {}; // optional param
}
<PellEditor />
component{{! app/templates/task.hbs }}
<PellEditor
@value={{this.value}}
@onChange={{fn (mut this.value)}}
@pellOptions={{this.options}}
/>
Available options are documented in Pell repository
See the LICENSE file included in this repository.
See the Contributing guide for details.
Please note that this project is released with a Contributor Code of
Conduct. By participating in this project you agree to abide by its
terms, which can be found in the CODE_OF_CONDUCT.md
file in this
repository.