1.0.0 • Published 9 years ago

ember-cli-ckeditor v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

Ember-cli-ckeditor

This README outlines the details of collaborating on this Ember addon.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

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