1

I succeeded to add the image and file upload buttons to my rich text redactor field with the fileupload param in the json config file.

redactor toolbar

{ buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video','table','file'], plugins: ['fullscreen','video','table',''], toolbarFixed: true, fileUpload: 'fichiers/' }

But it does not work : when I drap and drop a file or an image it shows the top bar indicating upload in progress but it finish without anything inserted in my field.

2
  • 2
    You do not need to modify the redactor config to get image inserting from your assets into a rich text field. Have you set up your asset source correctly? Can you see assets a source in your assets tab? Commented Jun 20, 2015 at 15:58
  • Yes I got my assets ressources defined but I do understand in CRAFT CMS a clear link between redactor and the assets. It is not so clear for me... Commented Jun 21, 2015 at 16:38

1 Answer 1

1

Craft's default Redactor implementation comes with image selection and uploading out-of-the-box that ties to its Assets sources.

If you click this button:

enter image description here

You'll get a modal where you can select already uploaded Assets or upload new ones.

enter image description here

4
  • Yes this works but if I drag and drog it does not work. I see the upload in progress bar but no image show up at the end. Also when I click on FILE UPLOAD button and choose a file to upload it fails. Commented Jun 21, 2015 at 16:37
  • You can check your craft/storage/runtime/logs files for [error] to see if there is any underlying error message getting logged.
    – Brad Bell
    Commented Jun 21, 2015 at 22:51
  • Hi Brad, sorry I was MIA for 1 month. So to continue this subject I am checking the log but I got 1600 error new lines suddenly appearing, I am not sure what to check. Do you have an example of clear path for the parameter : fileUpload: '?'. Commented Jul 19, 2015 at 20:00
  • Also second subject concerning the file upload in redactor, I am trying to use the ADD FILE button but it does add not my file at all. Commented Jul 19, 2015 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.