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

refactor(EditorFactory): split createEditor in rich and plain variant #6505

Closed
wants to merge 2 commits into from

Conversation

max-nextcloud
Copy link
Collaborator

@max-nextcloud max-nextcloud commented Oct 8, 2024

Use two functions that do one thing
rather than one with a boolean flag.

Simplifies the functions use and signature a lot
in particular since plain and rich editor need different arguments.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • tests are not needed as this is a refactoring.
  • Documentation is not required.

@max-nextcloud max-nextcloud requested a review from mejo- as a code owner October 8, 2024 07:53
Use two functions that do one thing
rather than one with a boolean flag.

Simplifies the functions use and signature a lot
in particular since plain and rich editor need different arguments.

Signed-off-by: Max <max@nextcloud.com>
This does not require jsdoc comments.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the refactor/split-createEditor branch from a87e233 to f724894 Compare October 8, 2024 07:57
@max-nextcloud
Copy link
Collaborator Author

Cypress failures in assistant and version tests are known and unrelated.

@max-nextcloud
Copy link
Collaborator Author

Superseeded by #6507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant