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

Intercept editor button clicks #24

Closed
willkara opened this issue Jan 3, 2019 · 3 comments
Closed

Intercept editor button clicks #24

willkara opened this issue Jan 3, 2019 · 3 comments

Comments

@willkara
Copy link

willkara commented Jan 3, 2019

Is it possible to intercept button clicks in the editor? I was hoping to host my photos in S3 and was thinking I could try and intercept the photo button click. Then I'd handle the uploads in my own fashion and return the URL to use in the editor.

Click button > call intercepted and file uploaded > URL returned > inserted into photo markdown template.

Thoughts?

@instance-oom
Copy link
Owner

My plan is to implement the feature similar to Github. We can dragging & dropping or pasting from the clipboard, then i will call the upload function that you defined on the component to get the final url. And this feature is in processing.

@willkara
Copy link
Author

willkara commented Jan 4, 2019

@lon-yang sounds exactly what I'd like. Let me know if you want me to look into anything!

instance-oom pushed a commit that referenced this issue Jan 4, 2019
@instance-oom
Copy link
Owner

@willkara I have released 1.1.10. And this verion has the input named upload. Please check the options in README.md or see the demo code.

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

2 participants