Skip to content

FEATURE: Enable rich editor for all users #33699

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

Merged
merged 25 commits into from
Jul 28, 2025

Conversation

martin-brennan
Copy link
Contributor

@martin-brennan martin-brennan commented Jul 18, 2025

We believe the rich editor is a great experience for the
vast majority of sites and users, so we are enabling it
for all sites and all users by default.

This commit does the following:

  • Hides the rich_editor site setting and sets it to true by default.
    It can still be overridden by sites that want to disable it
    completely.
  • Sets rich_editor to true for all sites to enable the rich editor
    everywhere.
  • Adds a new default_composition_mode site setting and corresponding
    user option that defaults to Rich for all users. The other option is Markdown.
  • Changes the rich editor toggle in the composer to use the new
    database-backed user option (composition_mode) instead of a local
    storage key/value store. This makes the preference persistent
    across devices.

Existing key/value store settings for the markdown toggle are
kept, the preference will be saved to the user option automatically.

We believe the rich editor is a great experience for the
vast majority of sites and users, so we are enabling it
for all sites and all users by default.

This commit does the following:

* Hides the rich_editor site setting and sets it to true by default.
  It can still be overridden by sites that want to disable it
  completely.
* Sets `rich_editor` to true for all sites to enable the rich editor
  everywhere.
* Adds a new `default_composition_mode` site setting and corresponding
  user option that defaults to Modern (a.k.a. rich editor) for all users.
  The other option is Classic (a.k.a. markdown editor).
* Changes the rich editor toggle in the composer to use the new
  database-backed user option (`composition_mode`) instead of a local
  storage key/value store. This makes the preference persistent
  across devices.

Existing key/value store settings for the markdown toggle are
disregarded, the preference will be saved to the user option the first
time the user toggles it.
@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label Jul 18, 2025
@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Jul 18, 2025
@martin-brennan martin-brennan force-pushed the feature/enable-rich-editor-for-all branch from 7eb996b to c2dad7c Compare July 21, 2025 04:26
@github-actions github-actions bot added the migrations-tooling PR which includes changes to migrations tooling label Jul 21, 2025
@martin-brennan
Copy link
Contributor Author

Not sure why these specs are failing, flaky maybe? Fine locally

@martin-brennan martin-brennan requested a review from renato July 22, 2025 06:21
@renato
Copy link
Contributor

renato commented Jul 22, 2025

If the tests are fine locally, I'd guess some click(".composer-toggle-switch") that we have elsewhere may be leaking this state, causing these tests to run as if in rich editor mode

@martin-brennan martin-brennan merged commit 77211b4 into main Jul 28, 2025
17 checks passed
@martin-brennan martin-brennan deleted the feature/enable-rich-editor-for-all branch July 28, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin i18n PRs which update English locale files or i18n related code migrations-tooling PR which includes changes to migrations tooling
Development

Successfully merging this pull request may close these issues.

2 participants