Recommend this page to a friend! |
Classes of Everton C B Junior | PHP CKEditor Library | README.md | Download |
|
DownloadCKEditor plugin for CakePHP 3.x with version selectInstallationYou can install this plugin into your CakePHP application using composer. This is a personal version of: https://github.com/CakeCoded/CkEditor with the possibility of choose the version and distribution. The recommended way to install composer packages is:
Then in config/bootstrap.php add:
In either src/Controller/AppController.php, or any controller where you want to use CKEditor, add:
Finally, in your template file, simply add this to call CKEditor:
This is the equilivant of using
Except that CKEditor will be loaded instead of a text area! Advanced OptionsYou can make adjustments to CKEditor and the form input as needed. There is full flexibility in this regard. The full explaination is as follows:
The name of the field, can be field_name or model.field_name
Options include $options['label'] for a custom label and any other custom Form Helper options
This will pass any options from http://docs.ckeditor.com/#!/guide/dev_configuration to CKEditor
This gives an option to overwrite the CKEditor URL. You can use a local URL then if required. ExamplesUse an associated field name
Generate a custom label
Add options to CKEditor from http://docs.ckeditor.com/#!/guide/dev_configuration
Load a local version of CKEditor, or a different version
Example showing all the options together
|