Allow default editor setting to be optional

What does this MR do and why?

Allow default editor setting to be optional

Add a checkbox to enable or disable default editor setting.

Changelog: added

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After (When default editor is enabled) After (When default editor is disabled)
image.png image.png image.png

How to set up and validate locally

Testing disabled state

  1. Go to Profile > Preferences
  2. Uncheck "Enable default text editor"
  3. Radio buttons should be disabled
  4. Click "Save preferences"
  5. Go to any issue page comment box
  6. Switch to plain text editor
  7. Refresh
  8. Plain text editor selection is retained
  9. Switch to rich text editor
  10. Refresh
  11. Rich text editor selection is retained

Testing rich text editor as default

  1. Go to Profile > Preferences
  2. Check "Enable default text editor"
  3. Radio buttons should be enabled
  4. Select "Rich text editor"
  5. Click "Save preferences"
  6. Go to any issue page comment box
  7. Rich text editor should be enabled
  8. Switch to plain text editor
  9. Refresh
  10. Rich text editor selection is retained

Testing plain text editor as default

  1. Go to Profile > Preferences
  2. Check "Enable default text editor"
  3. Radio buttons should be enabled
  4. Select "Plain text editor"
  5. Click "Save preferences"
  6. Go to any issue page comment box
  7. Plain text editor should be enabled
  8. Switch to rich text editor
  9. Refresh
  10. Plain text editor selection is retained

Related to #501422 (closed)

Edited by Himanshu Kapoor

Merge request reports

Loading