aurelia-froala
This package provides a custom element for the Froala editor in Aurelia.
Version 2
This repository contains bindings for the latest version of the Froala Editor (version 2). Version 1 of Froala is not supported.
Install
Run
jspm install npm:aurelia-froala
In your main.js or main.ts, extend the code
aureliause
with
;
In an Aurelia template, just use the aurelia-froala custom element to instantiate an editor. All configuration options can be set via the config attribute.
All the event handlers are also available:
Global configuration
To use the editor, you'll need a licnse (see Froala Website for details). Once you have obtained one, you can activate it using this snippet:
config;
Plugins, custom buttons and other languages need to be activated globally. This is done in the main.js or main.ts:
aureliause }
If you add custom plugins or commands you might want to localize them. This is done by providing the localized strings in the second parameter of the addLanguage method.
The languages of all editors on a page are automatically adjusted when the global aurelia language is changed. You don't have to perform any additional magic.
Licencing
While this package is licenced under the Apache licence, the Froala editor itself is not. Check out the Froala Website for details.