Skip to content

ipavelpetrov/ember-cli-trumbowyg

Repository files navigation

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']
    }
  });

  ...

About

Ember Addon for Trumbowyg WYSIWYG editor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published