instance-oom / ngx-markdown-editor

Angular markdown editor based on ace editor

Home Page:http://lon-yang.github.io/markdown-editor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intercept editor button clicks

willkara opened this issue · comments

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?

commented

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.

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

commented

@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.