1.0.0 • Published 9 years ago
ember-cli-ckeditor v1.0.0
Ember-cli-ckeditor
This README outlines the details of collaborating on this Ember addon.
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
Basic Usage
{{ember-cli-ckeditor
value=model.message
ckeditorConfig=ckeditorConfig
externalPlugins=externalCkeditorPlugins
}}
import Ember from 'ember';
export default Ember.Controller.extend({
/*
* Ckeditor configuration
*/
ckeditorConfig: {
filebrowserImageUploadUrl : '/api/file/upload/',
extraPlugins : 'uploadimage',
uploadUrl: '/api/file/upload/',
},
/*
* External plugin - when not available from bower
*/
externalCkeditorPlugins: [
{
pluginName: 'externalPluginName',
pluginPath:'/path/to/external/plugin'
}
],
})