Skip to content

Conversation

@luka-nextcloud
Copy link
Contributor

📝 Summary

  • Resolves: #
    Temporary fix the useEditor composable to make editor work in Deck card description

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@luka-nextcloud
Copy link
Contributor Author

It's following the temporary fix that was mentioned here #7381 (comment)

@blizzz blizzz requested a review from st3iny September 10, 2025 14:33
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this locally and it worked.

But I'm not sure what will happen if the text editor is mounted multiple times on a single page. The "global" variable is shared between all instances I think which will always return the same editor.

@max-nextcloud
Copy link
Collaborator

max-nextcloud commented Sep 10, 2025

I wonder if we could go back to options api provide in the components that currently call provideEditor. It's what we used before and I think it should be possible to provide something in the options api that is returned from the setup function.

update: I pushed what i mean in #7628 - could you give it a try @st3iny ?

@max-nextcloud
Copy link
Collaborator

superseeded by #7643

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.

4 participants