Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

lemonde/angular-ckeditor-placeholder

Repository files navigation

angular-ckeditor-placeholder

Build Status Dependency Status devDependency Status

Placeholder support for CKEditor angular directive.

Install

Using bower

bower 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 !