Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
This repository was archived by the owner on Aug 23, 2020. It is now read-only.

Missing "null" mode for plain text #27

@liborjelinek

Description

@liborjelinek

CodeMirrors ships with builtin plain text mode (no syntax highlight, nothing but just bare editor). You can set mode to null or text/plain to get it as described by CodeMirrors author at codemirror/codemirror5#1267.

When I set mode to null via CODEMIRROR_MODE settings or via CodeMirrorTextarea widget constructor, django-codemirror-widget generates non-existing path to mode/none/none.js like <script src="<CODEMIRROR_PATH>/mode/none/none.js">.

How to get "null" mode with django-codemirror-widget?

PS: IMHO default mode shouldn't be JavaScript but none. Your opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions