Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to add 'lineheight' pluggin #931

Open
fmoudoute opened this issue Aug 3, 2023 · 1 comment
Open

Trying to add 'lineheight' pluggin #931

fmoudoute opened this issue Aug 3, 2023 · 1 comment

Comments

@fmoudoute
Copy link

I am trying to add the lineheight plugin, i created my config.js and added :
config.extraPlugins = 'lineheight,richcombo,floatpanel,panel,listblock,button';.
i also initialised the ckeditor as per the instruction:

Ckeditor.setup do |config|
  require 'ckeditor/orm/active_record'
  config.js_config_url = 'ckeditor/config.js'
  config.cdn_url = "//cdn.ckeditor.com/4.7.0/standard/ckeditor.js"
  config.image_file_types = %w[jpg jpeg png gif tiff]
  config.attachment_file_types = %w[doc docx xls odt ods pdf rar zip tar tar.gz swf]
  puts(config)
end

But for some reason, ckeditor is looking for the lineheight plugin through the CDN insead of
app/assets/javascripts/ckeditor/plugins/lineheight/plugin.js

and it returns the error :

Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "lineheight" was not found at "http://cdn.ckeditor.com/4.7.0/standard/plugins/lineheight/plugin.js?t=H4PG".
    at CKEDITOR.resourceManager.<anonymous> (ckeditor.js:251:80)

How can i fix so it get the plugin from the plugin.js inside the right folder please ?

@pkarjala
Copy link

Which version of the ckeditor gem are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants