Feat v0.4.4 rich editor import export
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
26
CHANGELOG.md
26
CHANGELOG.md
@@ -2,6 +2,32 @@
|
||||
|
||||
All notable changes to Switchboard Core are documented here.
|
||||
|
||||
## v0.4.4 — Rich Editor + Import/Export
|
||||
|
||||
### Added
|
||||
|
||||
- **CodeMirror 6 integration**: Notes editor now uses the vendored CM6 bundle
|
||||
(`CM.noteEditor()`) for rich markdown editing with syntax highlighting,
|
||||
wikilink autocomplete (`[[` triggers note title completion), and inline
|
||||
preview decorations for headings, code blocks, and blockquotes.
|
||||
- **CM6 dynamic loading**: Bundle loaded via `<script>` tag at boot time.
|
||||
Falls back to plain textarea if CM6 is unavailable.
|
||||
- **Export as .md**: Export button in editor header downloads the note as a
|
||||
Markdown file with YAML frontmatter (title, tags, created date).
|
||||
- **Import .md**: Import button in topbar allows uploading `.md`/`.markdown`/`.txt`
|
||||
files. Parses YAML frontmatter for title and tags, creates note via API.
|
||||
- **CSS for CM6**: Editor fills the container with `max-height: none` override
|
||||
and proper scroller padding.
|
||||
|
||||
### Changed
|
||||
|
||||
- Notes package version bumped from 0.4.0 to 0.5.0.
|
||||
- `EditorPane` component refactored to support CM6 with mutable refs for
|
||||
title/body (required for CM6 callback closures).
|
||||
- Ctrl/Cmd+S save works in both CM6 and textarea fallback modes.
|
||||
|
||||
---
|
||||
|
||||
## v0.4.3 — Backlinks + Wikilinks
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user