[Bug]: Vue Editor no longer provides root app globals #5323
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
@tiptap/vue-3
Version(s)
2.5.0-pre.14
Bug Description
A customised editor that renders some app ui vue components via extension. These components make use of some app context globals — these can be directives, properties, etc. By rendering them in the editor, they should still have access to the app's context as they had before (
v2.4.0
) — or have a way to provide it.The reproduction example uses the documentation demo https://tiptap.dev/docs/editor/extensions/custom-extensions/node-views/vue and tweaks it to include an
AppButton
which accesses a global app property object —someGlobal.x
Browser Used
Chrome
Code Example URL
https://stackblitz.com/edit/vitejs-vite-nmhr7x?file=src%2FApp.vue
Expected Behavior
In the latest stable
v2.4.0
the components render just fine and have access to the app context -> demo: https://stackblitz.com/edit/vitejs-vite-8gu77g?file=src%2FApp.vueAdditional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: