Skip to content

Editor cannot be used outside of a Livewire component #802

Closed
livewire/livewire
#9135
@andyunleashed

Description

@andyunleashed

Using the boilerplate component, customized with a model or not - e.g <flux:editor wire:model="content" label="…" description="…" /> throws this error: Using $this when not in object context

Image

I tried publishing the component and then looking at the code inside and if I comment out the assets method - e.g:

{{-- @assets --}}
<flux:editor.scripts />
<flux:editor.styles />
{{-- @endassets --}}

It does load without an issue:
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions