Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
config.js personalizado para ckeditor y visualización dentro de un fancybox

Estoy tratando de usar una barra de herramientas de configuración personalizada de ckeditor en Rails 5 pero obtengo el siguiente error. Error: ActionController::RoutingError (Ninguna ruta coincide con [GET] "/ckeditor/config.js"):

mi /app/assets/javascripts/ckeditor/config.js

 config.extraPlugins = 'divarea,s3FileUploader'; config.allowedContent = true; config.disallowedContent = 'script'; config.dragdropConfig = { backend: 's3', settings: { credentialUrl: '/r3_files/presigned_post', region: 'us-west-2', } } config.toolbar_mini = [ ['-', 'Table', 'Link', 'Smiley', 'TextColor', 'BGColor', 'HorizontalRule'], ['Undo', 'Redo', '-', 'Cut', 'Copy', 'Paste', 'Find', 'Replace', '-', 'Outdent', 'Indent', 'NumberedList', 'BulletedList', '-'], ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'Image'] ]; config.toolbar = 'mini'; }```

archivo donde se llama la instancia de ckeditor.

 CKEDITOR.replace('email_body',{ customConfig: '/app/assets/javascripts/ckeditor/config.js' });
 the following are also included in my code 1. mount Ckeditor::Engine => '/ckeditor' in routes.rb 2. ckeditor/config.js in assets.rb **Update:** I changed the path to 'config.js' which used the custom toolbar BUT now the problem I am facing is shift+spacebar gives a space.So now I would like to use spacebar only for spaces. This same thing is also occuring while using backspace. Backspace only closes the editor but shift + backspace, does the actual function of Backspace. Thank you in advance.
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!