when submit form in livewire the editor disappers and turn back to text area
body
<textarea class="form-control" wire:model='body' id="body">{{ old('body') }}</textarea>
@section('scripts')
<script>
tinymce.init({
selector: '#body',
forced_root_block: false,
setup: function(editor) {
editor.on('init change', function() {
editor.save();
});
editor.on('change', function(e) {
@this.set('body', editor.getContent());
});
}
});
</script>
@endsection
i have used wire ignore but not working