Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(Editor.vue): provide default for injected isEmbedded
The property `isEmbedded` only gets provided in `ViewerComponent.vue`.
When the editor gets created though other means, e.g. via editor API
(`editor.js`), `isEmbedded` is not provided and thus produces an error:

> Injection "isEmbedded" not found

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 4, 2024
commit 976a292aada99a97ebb1ce842b36a7eb56be46cc
4 changes: 3 additions & 1 deletion src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ export default {

return val
},
inject: ['isEmbedded'],
inject: {
isEmbedded: { default: false },
},
props: {
richWorkspace: {
type: Boolean,
Expand Down