Placeholder support for CKEditor angular directive.
bower install angular-ckeditor-placeholder
Note : obviously this plugin expects the presence of angular-ckeditor https://github.com/lemonde/angular-ckeditor
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
};
});
MIT
- 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 !