decaporg / decaporg/decap-cms

Add config option to set default mode on markdown widget

Open
#5,125 2 comments 1 reaction 0 assignees View on GitHub
area: extensions/widgets/markdown area: ui/editor type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**

I want to be able to set the markdown widget in markdown mode by default and keep rich text as optional.

**Describe the solution you'd like**

a solution could be when defining `modes` for the markdown widget on config.yml to honor the array order:
(e.g. `modes: ["raw", "rich_text"]`, should set markdown by default`)

**Additional context**

default:
image

with `modes: ["raw", "rich_text"]`:
image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.