comfortable-mexican-sofa: Image uploading within wysiwyg not working

Note: For general questions and feature requests please leave a message on Gitter: https://gitter.im/comfy/comfortable-mexican-sofa

Expected behavior

I should have been able to upload an image through wysiwyg image button.

Actual behavior

An error is thrown in javascript as the CMS.file_upload_path is interpreted as undefined.

Steps to reproduce

Install locally, run everything as stated and layout should include {{ cms:wysiwyg content }}. Then try to create a new page and in the text try to upload an image. It should fail

I have already figured out why this happens and will create a pull request. Spoiler… this in /app/assets/javascripts/comfy/admin/cms/base.js.coffee:

"#{CMS.file_upload_path}?source=redactor&type=image&#{params}"

Should become like this:

$('.cms-files-modal').data('iframe-src') + "?source=redactor&type=image&#{params}"

System configuration

Rails version: 5.2.0.beta2

CMS version: 2.0.7

Ruby version: 2.5.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Argh! The dashes!