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

How to directly edit the content so I can add a markdown element? #48

Closed
kotAPI opened this issue May 22, 2018 · 3 comments
Closed

How to directly edit the content so I can add a markdown element? #48

kotAPI opened this issue May 22, 2018 · 3 comments

Comments

@kotAPI
Copy link

kotAPI commented May 22, 2018

I'm trying to build a custom toolbar icon, when clicked injects a image link where the cursor is currently present. How can I directly append to markdown content?

I tried emitting events and but the parent doesn't catch it. Seeking advice on how I could do something similar.

@F-loat
Copy link
Owner

F-loat commented May 22, 2018

<markdown-editor v-model="content"></markdown-editor>

Just change content and it will sync to simplemde.

@F-loat
Copy link
Owner

F-loat commented May 23, 2018

A work around about upload image: 基于vue-simplemde实现图片拖拽、粘贴功能的一些思考 .

@kotAPI
Copy link
Author

kotAPI commented May 24, 2018

Alright, thanks a lot! :)

@kotAPI kotAPI closed this as completed May 24, 2018
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