-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 an ability to include images #100
Comments
Thanks for the kind words! This is feature is high in the pipeline, I'm planning to release this somewhere at the end of the month or next month. 😄 |
Was this feature ever implemented? |
Sadly not, it's not very hard to implement though. We support it, but don't have a UI for it. If we supply the field |
@CompuIves I'd like to take it if its not already taken :) |
That would be really great @wuweiweiwu! I think the best implementation would be to add the option to create a 'Binary File', a binary file is a file marked with |
@CompuIves Sounds good! I'll get on it! |
@CompuIves I was thinking of adding a upload image button by the add file. And then sending the payload with the image and Would that work? |
Interesting, then we'd have an upload version immediately as well. I like it, that'd work! We don't have an upload endpoint yet, but I can make this soon. |
@CompuIves A thing that I don't fully understand is that creating a binary file like favicon.ico in the example. When you send the request for that, is the link to the actual resource sent in the payload? I mightve misunderstood |
That's how we currently handle binary files, the code is just a url to the resource. We still want to add an upload service that allows the user to upload a file, we return the url which in turn will be placed in the code. For example, if you want to upload an image then I imagine we'd first do an upload to an endpoint like
|
@CompuIves I have it rewritten using the cerebral modules :) But blocked on #545. Can't create a new project to test it. Hope that can get resolved soon Thanks! |
@CompuIves Seems like the Does the api still support isBinary key? request:
response:
But creates the file |
Added in #685 . |
@lbogdan I see that image uploading is working but loading the images via JS import in parcel vallila tamplate is not working |
I love this editor so much it is an awesome tool. Currently there is no provision to add images it would be useful when having static image files in a directory instead of fetching from a URL.
The text was updated successfully, but these errors were encountered: