-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add ability to use local image upload in wysiwyg editor #1069
Comments
+1 |
+1, this one is related to #526 |
+1 |
This is a very good solution for wysiwyg and image managment keystonejs/keystone#1549 (comment) |
Getting "Got a bad response from the server" after clicking on insert button. Do we need to do any other changes? |
+1 But below code I add ==> Result: Got a bad response from the server |
We're closing all feature requests to keep the issue tracker unpolluted. I've moved this to ProductPains: https://productpains.com/post/keystonejs/add-ability-to-use-local-image-upload-in-wysiwyg-editor |
@tomasztunik can you share you api endpoint handler code somehow, please? |
@quadrifoliumclover you should check out ConnextCMS. It's built on top of KeystoneJS and it allows inserting of localy hosted images with the TinyMCE editor. You can view the source code on GitHub. I ended up having to write a new plugin for TinyMCE. |
in answer set header ` res.setHeader('Content-Type', 'text/html; charset=utf-8'); |
I was able to hack it in by modifying
wysiwyg additional options
property and fooling keystone to think it's using cloudinary images but it would be great to have a native way to do that. We'd probably need a destination and flag to decide if we want to hash the name or retain original filename. Can't come up with easy way to link the images to the document that would use it unless we extended field's schema to also include additional field for storing image references if user have chosen to usewysiwyg local images
(or whatever it would be called) that would get updated if image is added, removed or would be used to remove images if entry is removed.Had to create custom api endpoint to handle the uploads - if anybody needed that for the time being let me know. And there goes the hack :)
The text was updated successfully, but these errors were encountered: