obsidian-plugin-editor-api
Installation
SKILL.md
Obsidian Plugin Editor
This skill guides you through integrating with the Obsidian editor: CodeMirror 6 extensions, the Editor API, and markdown post-processing. It focuses on the editing surface — how to read and write text, extend the editor with CM6 primitives, render custom DOM in Reading view, and provide autocomplete popups.
When to Use This Skill
- Building a CodeMirror 6 extension for Live Preview (decorations, widgets, custom behavior)
- Reading or programmatically modifying editor content via the
EditorAPI - Adding autocomplete / suggestion popups with
EditorSuggest - Customizing how Markdown renders in Reading view with post processors
- Implementing custom fenced code block renderers
- Deciding whether a feature belongs in an editor extension or a post processor
Overview
Obsidian's editor is powered by CodeMirror 6 (CM6). There are three main integration surfaces: