ng-ckeditor icon indicating copy to clipboard operation
ng-ckeditor copied to clipboard

How to add option to the config like extraPlugins

Open cve opened this issue 11 years ago • 9 comments

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?

cve avatar Feb 17 '14 16:02 cve

Did you solve your problem with adding plugin? I'm trying to include youtube plugin and it's not work too

piton4eg avatar May 23 '14 13:05 piton4eg

+1

andrewboni avatar Jun 09 '14 23:06 andrewboni

These are the steps I took to use plugins:

  1. Build the editor using http://ckeditor.com/builder where you can select any plugin.
  2. Replace the 'ckeditor' folder from 'ng-ckeditor/libs/ckeditor' with the build version from the step 1

tigerss avatar Aug 13 '14 10:08 tigerss

But how it works with bower?

piton4eg avatar Aug 13 '14 10:08 piton4eg

"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.

tigerss avatar Aug 19 '14 10:08 tigerss

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

piton4eg avatar Aug 19 '14 11:08 piton4eg

Interesting! Maybe you can explain your solution for others that use heroku and can't manual replace the folder.

tigerss avatar Aug 19 '14 14:08 tigerss

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

piton4eg avatar Aug 19 '14 14:08 piton4eg

Even doing this: These are the steps I took to use plugins:

  1. Build the editor using http://ckeditor.com/builder where you can select any plugin.
  2. Replace the 'ckeditor' folder from 'ng-ckeditor/libs/ckeditor' with the build version from the step 1

Codesnippet plugin did not work

gustavolira avatar Nov 28 '15 01:11 gustavolira