Ionaru / Ionaru/easy-markdown-editor

Autocomplete for links - CodeMirror Addons

Open
#149 4 comments 1 reaction 0 assignees View on GitHub
Question
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**How to implemet autocomplete using CodeMirror Addons?**

I want to implement an autocomplete feature, so when the user starts typing a link, the editor would suggest from a predefined list of options.

Exploring CodeMirror I found [this autocomplete example](https://codemirror.net/demo/complete.html) that uses addons.

I could find on the easymde docs how to add addons to the underlying CodeMirror instance. Would I have to change easymde code? If so, is it just a matter of passing the addons in the easymde options and the pass those when initializing CodeMirror?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.