Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to set default mode on markdown widget #5125

Open
cdeath opened this issue Mar 16, 2021 · 2 comments
Open

Add config option to set default mode on markdown widget #5125

cdeath opened this issue Mar 16, 2021 · 2 comments
Labels
area: extensions/widgets/markdown area: ui/editor type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@cdeath
Copy link

cdeath commented Mar 16, 2021

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

@cdeath cdeath added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Mar 16, 2021
@erezrokah
Copy link
Contributor

Hi @cdeath, please note that Rich Text/Markdown selection is "sticky" - the preference is persisted in local storage.

@cdeath
Copy link
Author

cdeath commented Mar 16, 2021

@erezrokah even better... but most will never touch the preference and i want my audience to use markdown primarily. if one team member wants to use Rich Text it's up to him (and to take the blame for breaking stuff).

for more context: we're using kramdown extensions in some places which look weird in Rich Text mode and might break but i don't want to exclude Rich Text... and about the team, if they don't know markdown or kramdown they can go RTFM lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: extensions/widgets/markdown area: ui/editor type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

2 participants