ophix-codemirror
Vendored CodeMirror editor plugin for ophix-server-base.
Bundles CodeMirror 5 as static assets and provides Django form widgets for use in the admin interface. Air-gap safe — no CDN dependencies at runtime.
Installation
pip install ophix-codemirror
What this plugin provides
- Vendored CodeMirror 5.65.16 JavaScript and CSS assets (MIT licensed, from
codemirror/codemirror5; its license is
bundled alongside the vendored files at
static/ophix_codemirror/codemirror/LICENSE) JSONCodeMirrorWidget— JSON editor with fold gutter and auto pretty-printDynamicCodeMirrorWidget— format-switching editor; switches CodeMirror mode based on a format dropdown withdata-codemirror-modeattributes on each option. Used byophix-confsfor configuration snippet editing.
Usage
Used automatically by domain plugins that include a content editor in the admin.
ophix-confs wires DynamicCodeMirrorWidget into its Configuration admin form.
Other domains with content fields should use DynamicCodeMirrorWidget for any
format-aware text field.
from ophix_codemirror.widgets import DynamicCodeMirrorWidget, JSONCodeMirrorWidget
Server
This plugin is part of the Ophix Project server stack.
Metadata
Release files for ophix-codemirror 2026.10.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ophix_codemirror-2026.10.6.1.tar.gz | 82.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ophix_codemirror-2026.10.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 170.4 kB
Release files / ophix_codemirror-2026.10.6.1.tar.gz
| Download URL | ophix_codemirror-2026.10.6.1.tar.gz |
|---|---|
| Size | 82.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6286138b4d5c2f037c06be58218ad921abe27d746aef41865cc66cf408b699a2
|
|
BLAKE2b-256 checksum How to use checksums |
e707aa177babe7717c8ba7a4970aaf6479bab16c195a49380f942770194fbd8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / ophix_codemirror-2026.10.6.1-py3-none-any.whl
| Download URL | ophix_codemirror-2026.10.6.1-py3-none-any.whl |
|---|---|
| Size | 87.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
844cd958351b89f4c77e1d37b6d55d535aaf8077dd64ea92a55ebdc533cfc99e
|
|
BLAKE2b-256 checksum How to use checksums |
9e007b45352c454d9d209fbade4c7b2663973359a81462fdb9ec858e4f7ae067
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|