Hello, I've passed by here and wanted to tell you that the FilamentPHP Tiny package also had that issue, and I've submitted a pull request so you can pass your license through the environment variable. I hope it helps you https://github.com/amidesfahani/filament-tinyeditor/pull/38
filamentphp custom field problems
Hello, I am creating a custom field in filamentphp, but I have some problems
1- The problem is in ->reorderableWithButtons() and moving items, the data inside tiny is deleted after changes
2- Also, it is said to use state to transfer data in the tutorials, but it didn't work for me and I used x-model="state"
My Code < script > src="https://cdn.tiny.cloud/1/{{env('TINYMCE_API_KEY')}}/tinymce/6/tinymce.min.js" </ script >
< x-dynamic-component :component="$getFieldWrapperView()" :field="$field" class="relative z-0"> < x-filament::input.wrapper class="overflow-hidden" wire:ignore x-data="{ state: $wire.$entangle('{{ $getStatePath() }}') }" x-init=" tinymce.init({ target: $refs.tinymce, selector: $refs.tinymce, setup: function (editor) { editor.setContent(state); editor.on('change', function () { state = editor.getContent(); }); } }); "> < textarea x-model="state" x-ref="tinymce" ></ textarea > </ x-filament::input.wrapper > </ x-dynamic-component >
Please or to participate in this conversation.