ng-ckeditor
ng-ckeditor copied to clipboard
How to add option to the config like extraPlugins
Hi, I want to use this plugin http://ckeditor.com/addon/autogrow but adding
$scope.editorOptions = {
extraPlugins: 'autogrow'
};
no work... could you tell me how can I do that?
Did you solve your problem with adding plugin? I'm trying to include youtube plugin and it's not work too
+1
These are the steps I took to use plugins:
- Build the editor using http://ckeditor.com/builder where you can select any plugin.
- Replace the 'ckeditor' folder from 'ng-ckeditor/libs/ckeditor' with the build version from the step 1
But how it works with bower?
"bower install ng-ckeditor" creates the ng-ckeditor folder inside bower_components folder.
ng-ckeditor contains a folder called ckeditor inside libs. This is the folder that contains plugins and can be replaced to install any plugins. Use the steps from my previous comment.
I'm sorry, but I didn't say that I deploy my project to heroku, and "bower install" command performs when I am deploying project, and folder "ckeditor" inside "libs" creates dynamically. Thanks for your help, I resolve my problem with official ckeditor package http://ckeditor.com/blog/CKEditor-Supports-Bower-and-Composer
Interesting! Maybe you can explain your solution for others that use heroku and can't manual replace the folder.
I created custom_config.js in folder "assets/javascripts/ckeditor", also I move folder with plugin in this directory. Then I add plugin to config file (config.extraPlugins = 'youtube') and use this config with CKEDITOR.replace(ckeditor_element, { customConfig: "/assets/ckeditor/custom_config.js" }). Bower components are installed to "vendor/assets/components" and folder with plugin are not deleted when I push to heroku. How use custom config I found in this guide - http://docs.ckeditor.com/#!/guide/dev_configuration-section-using-a-custom-configuration-file
Even doing this: These are the steps I took to use plugins:
- Build the editor using http://ckeditor.com/builder where you can select any plugin.
- Replace the 'ckeditor' folder from 'ng-ckeditor/libs/ckeditor' with the build version from the step 1
Codesnippet plugin did not work