0.0.3 • Published 8 years ago

ember-cli-trumbowyg v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Ember-cli-trumbowyg

Ember Addon for Trumbowyg WYSIWYG editor.

Getting Started

Installation

In your ember-cli project, install this addon from npm

ember install ember-cli-trumbowyg --save-dev

Usage

  {{trumbowyg-editor
    html=html
    btns=btns
    lang=lang
    disabled=disabled
    placeholder=placeholder
    semantic=semantic
    autogrow=autogrow
    resetCss=resetCss
    removeformatPasted=removeformatPasted
    change=(action (mut html))
  }}

Options

See Trumbowyg docs

Importing specific languages and plugins

By default, all available trumbowyg languages and plugins will be imported into the project. You can optionally specify exactly which languages and plugins should be imported to the project via the 'langs' and 'plugins' options, which accepts an array of names.

  /* your ember-cli-build.js */

  ...

  var app = new EmberAddon(defaults, {
    'ember-cli-trubowyg': {
      // array of language names
      langs: ['ru', 'fr'],
      // array of plugin names
      plugins: ['colors']
    }
  });

  ...