0.1.2 • Published 6 years ago
ember-ckeditor5 v0.1.2
Ember CKEditor
This library is a thin wrapper around the CKEditor 5 balloon build
To install this addon, run
ember install ember-ckeditor
and then use the {{ck-editor}}
component in your app. You may also directly access the Balloon Editor
module by importing it
import { BalloonEditor } from 'ember-ckeditor'
The {{ck-editor}}
component yields out an object that can be used on a case-by-case basis to provide some UI around the editor
{{#ck-editor value=myHtmlStringValue as |api|}}
{{!-- A "save" button --}}
<button onClick={{api.actions.save}}>Save</button>
{{/ck-editor}}
and if you provide an onChange
function, it will be called anytime the value is altered
{{ck-editor
value=myHtmlStringValue
onChange=(action (mut myHtmlStringValue)) }}
Addon Development
Installation
git clone <repository-url>
this repositorycd ember-ckeditor
npm install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.