Skip to content

forms-angular/fng-ckeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

326 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fng-ckeditor

Documentation for getting a WYSIWYG field in forms-angular

CKEditor Version 5

Usage

For default Classic build

Add the following lines to your index.html (or equivalent) file

<script src="proxy.php?url=https%3A%2F%2Fcdn.ckeditor.com%2Fckeditor5%2Fxx.xx.xx%2Fclassic%2Fckeditor.js"></script>

In your Mongoose schemas you can set up fields like this:

fieldName: {type: String, form: {type: 'textarea', add: 'ckeditor5'}}

Register the directive:

angular.module('myApp',['fng.ckeditor'])

For fng custom build

Add the following lines to your index.html (or equivalent) file

<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2Ffng-ckeditor%2Fv5-custom%2Fbuild%2Fckeditor.js"></script>

In your Mongoose schemas you can set up fields like this:

fieldName: {type: String, form: {type: 'textarea', add: 'ckeditor5 custom'}}

Register the directive:

angular.module('myApp',['fng.ckeditor'])

CKEditor Version 4

Usage

npm install github:esvit/ng-ckeditor

Add the following lines to your index.html (or equivalent) file

<script src="proxy.php?url=https%3A%2F%2Fcdn.ckeditor.com%2F4.9.1%2Fstandard%2Fckeditor.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fng-ckeditor%2Fng-ckeditor.js"></script>

In your Mongoose schemas you can set up fields like this:

fieldName: {type: String, form: {type: 'textarea', add: 'ckEditor'}}

About

ckEditor plugin for forms angular

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors