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

LoadImageFromUrl() not working as expected #9

Open
medTL opened this issue Apr 21, 2020 · 2 comments
Open

LoadImageFromUrl() not working as expected #9

medTL opened this issue Apr 21, 2020 · 2 comments

Comments

@medTL
Copy link

medTL commented Apr 21, 2020

I am trying to implement an edit functionality in my project so I used the loadImageFromUrl() function from tui image editor api like so :
@ViewChild(ToastUiImageEditorComponent, { static: false }) editorComponent: ToastUiImageEditorComponent; ngAfterViewInit(): void { if (this.editMode) { setTimeout(() => { this.editorComponent.editorInstance.loadImageFromURL(this.url , 'image') }, 2000); } }
but that return a cross origin error so I used a proxy to bypass that
this.editorComponent.editorInstance.loadImageFromURL('https://cors-anywhere.herokuapp.com/' + this.url, 'image')
the image load without error but the editing controls are not working .
please help.

@maxdimaz
Copy link

maxdimaz commented Oct 7, 2020

I have the same issue anybody has a solution?

@dhruvlatitude
Copy link

dhruvlatitude commented Jun 30, 2021

nhn/tui.image-editor#477 (comment)
this helped me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants