samnaghavi
samnaghavi
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
I got in contact with the creator of the package and he said he is waiting for the stable version so he can update his package so it supports current version of tinyMCE
15 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
alright I try and contact him to see if we can come up with something it would be an amazing adition to filamentphp
15 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
I believe there might be a JavaScript or Livewire code solution to resolve my issue. The problem I'm experiencing is that when using TinyMCE, the data doesn't populate the <textarea></textarea> "I believe that is how tinyMce works but filament cant understand it and returns null" . As a temporary workaround, I've added another <textarea> below my custom TinyMCE field. After finishing editing my blog in TinyMCE, I click on the 'View Source' button (a TinyMCE feature that displays the HTML source of the edited text) and copy the entire HTML. Then, I paste it into the other textarea and proceed to upload the content😂 . this is my code now.
Forms\Components\Textarea::make('body')
->required()
->columnSpanFull(),
ViewField::make('body')
->view('forms.components.custom-textarea'),
Forms\Components\Textarea::make('body')
->required()
->columnSpanFull(),
ViewField::make('body')
->view('forms.components.custom-textarea'),
15 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
No description
15 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
Okay guys I have been successfull on prventing it to disapear with "wire:ignore" but still get the error "title cannot be null". this is the updated textarea
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field" wire:ignore>
<div>
<!-- <textarea {{ $applyStateBindingModifiers('wire:model') }}="{{ $getStatePath() }}" wire:ignore></textarea> -->
<textarea {{ $applyStateBindingModifiers('wire:model') }}="{{ $getStatePath() }}"></textarea>

</div>
</x-dynamic-component>
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field" wire:ignore>
<div>
<!-- <textarea {{ $applyStateBindingModifiers('wire:model') }}="{{ $getStatePath() }}" wire:ignore></textarea> -->
<textarea {{ $applyStateBindingModifiers('wire:model') }}="{{ $getStatePath() }}"></textarea>

</div>
</x-dynamic-component>
15 replies