-
Notifications
You must be signed in to change notification settings - Fork 162
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
SummernoteEditor: Image upload works, but retrieving fails because part of URL is missing #651
Comments
…edImageResourceReference This requires adding an abstract method to SummernoteEditor to get the storageId
I've created a branch with a fix: bug/651-summernote-storage-id.
/cc @klopfdreh |
Maybe you can do all those changes except providing a default storageid and don't make the class abstract - WDYT? |
What would be a default storageId ? |
I had a look at: The storageid is used as a subfolder name to store the images - so I think it should be used only once per editor. So if you have two editors you have two ids to separate the image files in two folders. You can generate one id per editor and it should be safe. In the database the implementation could be that you can use the id for a column to select all images from a specific editor. Long time ago since I implemented that. :-) |
Hello,
my URL looks like this: https://localhost/project/pageWithEditor.
I extended SummernoteStorage to store the images in a DB, which works, but when the browser tries to retrieve the image it uses the URL: https://localhost/summernoteimages?image=...
So the "/project" part is missing.
The text was updated successfully, but these errors were encountered: