galetahub / ckeditor

Ckeditor 4.x integration gem for rails

Home Page:https://ckeditor.com/ckeditor-4/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Couldn't add plugin issue

baodoan97 opened this issue · comments

Hi.
I see that our config.js file have included "font size and family", "justify" setting but these icon not show in the toolbar
So I try to research and understand that our gem using standard package which not have these plugin
Then I try to install two above plugin by following exactly document (download and put plugin and all depedencies to ckeditor/plugins)
Unfortunately, I got the error resource name 'font' was not found
I also searching to fix this problem but nothing can help me
Does anyone know how to fix this issue?

Change config.cdn_url in ckeditor to load full package ver help me no need to adding 'font' plugin. But When try to add image2 plugin I get this issue again.
Can anyone help?

Had the same issue here. Couldn't add extra plugins as described here.

Found out here under Enabling Local Plugins that you can define external plugin path.

e.g.
Loading YouTube plugin, config.js can be written like this:

CKEDITOR.plugins.addExternal(
  "youtube",
  "/assets/ckeditor/plugins/youtube/",
  "plugin.js"
);

CKEDITOR.editorConfig = function (config) {
  config.extraPlugins = "youtube";
};

Had the same issue here. Couldn't add extra plugins as described here.

Found out here under Enabling Local Plugins that you can define external plugin path.

e.g.
Loading YouTube plugin, config.js can be written like this:

CKEDITOR.plugins.addExternal(
  "youtube",
  "/assets/ckeditor/plugins/youtube/",
  "plugin.js"
);

CKEDITOR.editorConfig = function (config) {
  config.extraPlugins = "youtube";
};

This will not work on production env as the path will be changed after assets precompile :(

Nobody has a solution to this? Seems like plugin support is pretty essential and I can't get it working with CKE 4 and rails 6. I tried the solution posted here to no avail.

I get the same error Resource name "imageresizerowandcolumn" was not found at "http://cdn.ckeditor.com/4.14.1/full/plugins/imageresizerowandcolumn/plugin.js?t=K5H9".

I followed the docs. I have the plugin located at app/assets/javascripts/ckeditor/plugins/imageresizerowandcolumn/plugin.js and config.extraPlugins = 'imageresizerowandcolumn'; in my config.js.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Had the same issue here. Couldn't add extra plugins as described here.
Found out here under Enabling Local Plugins that you can define external plugin path.
e.g.
Loading YouTube plugin, config.js can be written like this:

CKEDITOR.plugins.addExternal(
  "youtube",
  "/assets/ckeditor/plugins/youtube/",
  "plugin.js"
);

CKEDITOR.editorConfig = function (config) {
  config.extraPlugins = "youtube";
};

This will not work on production env as the path will be changed after assets precompile :(

I was able to get this to work by using the /public folder instead of the the /app/assets folder, avoiding the assets pipeline.

any updates?