A web-based editor for editing chord sheets in the ChordPro format, built on CodeMirror.
🎸 View Demo 🪕
- ✅ ChordPro Syntax Highlighting
- ✅ Chord autocomplete - type "[" and you will see autocomplete of previously used chords
- ✅ Snippets - type "title", "start_of…", "tab" or any other ChordPro directive
- ✅ Error checking - Shows syntax errors in the editor
npm install @chordbook/editor
Put an element on the page that will be the container for the editor.
<div id="editor"></div>
Then, import the editor and create an instance of it.
import { createEditor } from '@chordbook/editor'
createEditor({
parent: document.querySelector('#editor'),
doc: "Initial content"
})
Contributions are welcome!
- Clone this repository:
git clone https://github.com/chordbook/editor.git
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open http://localhost:5173/ in your browser
This editor is built on some previous work by @isaiahdahl and @marijnh.
This project is licensed under the GPLv3.0 license.