0.1.3 • Published 4 years ago

angular-ckeditor-placeholder v0.1.3

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

angular-ckeditor-placeholder

Build Status Dependency Status devDependency Status

Placeholder support for CKEditor angular directive.

Install

Using bower

bower install angular-ckeditor-placeholder

Using NPM

npm install angular-ckeditor-placeholder

Note : obviously this plugin expects the presence of angular-ckeditor https://github.com/lemonde/angular-ckeditor

Usage

HTML:

<!-- Load files. -->
<script src="angular.js"></script>
<script src="angular-ckeditor.js"></script>
<script src="angular-ckeditor-placeholder.js"></script>

<div ng-controller="CkeditorCtrl">
  <div ckeditor="options" ng-model="title" placeholder="Title"></div>
</div>

JavaScript:

angular.module('controllers.ckeditor', ['ckeditor'])
.controller('CkeditorCtrl', function ($scope) {

  // Editor options.
  $scope.options = {
    language: 'en',
    allowedContent: true,
    entities: false
  };
});

License

MIT

Contributing

  • clone repo
  • ensure your editor is decent and pick up the .editorconfig and .jshintrc files
  • npm install
  • npm test
  • add tests, add features
  • grunt (to generate minified version)
  • send a PR

Thanks !