Ember addon for simplest and smallest (1kB) WYSIWYG text editor for web, with no dependencies
Clone or download
PoslinskiNet Merge pull request #54 from PoslinskiNet/greenkeeper/ember-cli-inject…
…-live-reload-2.0.0

Update ember-cli-inject-live-reload to the latest version πŸš€
Latest commit ab25867 Oct 15, 2018

README.md

Ember Pell Logo

Build Status Greenkeeper badge Ember Observer Score NPM package info for ember-pell License info

Ember-pell

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.

Browser support

Chrome Firefox IE Opera Safari
5+ βœ” 4+ βœ” 9+ βœ” 11.6+ βœ” 5+ βœ”

Demo

https://ember-twiddle.com/3b21c63730594b39d2b9cbfa8f963803

Installation

ember install ember-pell

Usage

1. Setup value property:

You can declare value variable in your controller or parent component:

// app/controllers/task.js
import Ember from 'ember';

export default Ember.Controller.extend({
  value: '<h1>Some html</h1>',
  options: {} // optional param
});

2. Use pell-editor component

{{pell-editor value=value onChange=(action (mut value)) pellOptions=options}}

Available options are documented in Pell repository

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit http://www.ember-cli.com/.

LICENSE

See the LICENSE file included in this repository.

Code of Conduct

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.