@videoly/ember-trix-next
v1.0.2
Published
A simple trix editor wrapper
Downloads
216
Readme
@videoly/ember-trix-next
A simple trix editor wrapper
Compatibility
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
Installation
ember install @videoly/ember-trix-next
Usage
In the most cases it would be enough just to use the inline variant of the component:
<TrixEditor
@trixChange={{this.handleTrixChangeEvent}}
@initialValue="some text" />
Or you can customize the markup:
<TrixEditor as |trix|>
<p>Some HTML before toolbar</p>
<trix.toolbar />
<p>Some HTML between toolbar and editor</p>
<trix.editor
@trixChange={{this.handleTrixChangeEvent}}
@initialValue="some text" />
<p>Some HTML after editor</p>
</TrixEditor>
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.