Custom plugins for the Aloha editor
The plugins are currently in one repository since they have shared dependencies.
Make a custom directory somewhere (preferably outside of the standard Aloha directory) and clone the repository.
$ mkdir aloha
$ git clone https://github.com/aptoma/aloha-plugins.git aloha/aptoma
To use the plugins you have to configure a custom path for the plugins.
Aloha.settings = {
requireConfig: {
// path needed for shared libs used by plugins
paths: {
'aptoma': '../../../aloha/aptoma'
}
},
// path for custom plugins (relative from Aloha.settings.baseUrl)
bundles: {
'aptoma': '../../../aloha/aptoma/plugins'
},
plugins: {
// which plugins to load
load: [
'common/ui',
'aptoma/styles',
'aptoma/font',
'aptoma/textresize',
'aptoma/colorpicker',
'aptoma/reset',
'aptoma/htmlsource'
]
}
};
Some of the plugins currently depends on our fork of the Aloha editor which contains some fixes not in the orignal repo (yet).
See each plugin for configuration examples.
$ grunt jshint