build: vendor CodeMirror 5.65.16 for the source editor

This commit is contained in:
2026-11-06 08:23:13 +08:00
parent b2a4fd41ca
commit 8b4d1fa03e
14 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# CodeMirror 5.65.16 (vendored)
MIT-licensed source editor used only in edit mode. Nothing here is loaded at
startup: Rust injects the concatenated bundle the first time the page asks for
it (`need-editor` IPC), then calls `window.__mdpOnEditorSource()`.
Files are the minified builds from the cdnjs 5.65.16 package
(`https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/`):
- `codemirror.min.js`, `codemirror.min.css`
- `mode/xml/xml.min.js`, `mode/meta.min.js`, `mode/markdown/markdown.min.js`
- `addon/search/searchcursor.min.js`, `addon/search/search.min.js`
- `addon/dialog/dialog.min.js`, `addon/dialog/dialog.css`
- `addon/fold/foldcode.min.js`, `addon/fold/foldgutter.min.js`, `addon/fold/foldgutter.css`
See `LICENSE` for the upstream license. Keep this directory offline-only; do
not point the page at a CDN.