Ember Addon for Trumbowyg WYSIWYG editor.
In your ember-cli project, install this addon from npm
ember install ember-cli-trumbowyg --save-dev
{{trumbowyg-editor
html=html
btns=btns
lang=lang
disabled=disabled
placeholder=placeholder
semantic=semantic
autogrow=autogrow
resetCss=resetCss
removeformatPasted=removeformatPasted
change=(action (mut html))
}}
See Trumbowyg docs
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']
}
});
...