Skip to content

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

Closed
max-nextcloud wants to merge 2 commits into
mainfrom
refactor/split-createEditor
Closed

refactor(EditorFactory): split createEditor in rich and plain variant#6505
max-nextcloud wants to merge 2 commits into
mainfrom
refactor/split-createEditor

Conversation

@max-nextcloud

@max-nextcloudmax-nextcloud commented Oct 8, 2024

Copy link
Copy Markdown
Collaborator

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.

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

Copy link
Copy Markdown
CollaboratorAuthor

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

@max-nextcloud

Copy link
Copy Markdown
CollaboratorAuthor

Superseeded by #6507

Sign up for freeto 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

@max-nextcloud