Skip to content
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

Change image source from blob to base64, missing location for changed image of photo component #88

Closed
rebbieboi opened this issue Jan 6, 2018 · 1 comment
Assignees
Milestone

Comments

@rebbieboi
Copy link

Currently, when I change the image of the photo component I get this as the image src:

blob:http://localhost/be9737ae-4b93-49ff-9cc4-c6ca4f50fa60

Is it possible to change to use base64 instead so that it would be easier in generating PDF or sending the contents via Email?

Also, is the image actually uploaded if yes where can I find it?

When I used:

$('#content-area').keditor('setContent', '<section><div class="row"><div class="col-sm-12" data-type="container-content"><section data-type="component-photo"><div class="photo-panel"><img src="blob:http://localhost/be9737ae-4b93-49ff-9cc4-c6ca4f50fa60" width="100%" height="" style="display: inline-block;" class="img-responsive"></div></section></div></div></section>');

The content is the result of console.log($('#content-area').keditor('getContent'));

The image cannot be found.

Am I missing a config here?

Thank you

@rebbieboi rebbieboi changed the title Change image source from blob to base64 Change image source from blob to base64, missing location for changed image of photo component Jan 6, 2018
@ducdhm ducdhm self-assigned this Feb 25, 2018
@ducdhm ducdhm added this to the 1.1.6 milestone Feb 25, 2018
@ducdhm
Copy link
Contributor

ducdhm commented Feb 25, 2018

@rebbieboi I have changed Photo component. Now image will be stored as base64 when you change.

FYI: Keditor is frontend stuff. It doesnt store image in any where. You need to implement your server side stuff to store image.

@ducdhm ducdhm closed this as completed Feb 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants