@videoly/ember-trix-next

1.0.2 • Public • Published

@videoly/ember-trix-next

CI

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.

Package Sidebar

Install

npm i @videoly/ember-trix-next

Weekly Downloads

18

Version

1.0.2

License

MIT

Unpacked Size

13.8 kB

Total Files

19

Last publish

Collaborators

  • lancedikson
  • sorgoz