When I try to set a custom fileAttachmentProvider:
TinyEditor::make('text')->fileAttachmentProvider(
CustomFileAttachmentProvider::make()
->collection('text')
)
The uploaded image is saved:
|
$nodeAttrsId = $component->saveUploadedFileAttachment($attachment); |
But it is geting cleaned right after:
|
$fileAttachmentProvider?->cleanUpFileAttachments(exceptIds: $fileAttachmentIds); |
The image HTML tag gets the new uploaded uuid from the custom provider:
|
$image->setAttribute('data-id', $nodeAttrsId); |
But the $fileAttachmentIds array is filled with the old data:
|
$fileAttachmentIds[] = $fileKey; |
Please change the 129 Line to:
$fileAttachmentIds[] = $nodeAttrsId;
And it will be good :)
When I try to set a custom fileAttachmentProvider:
TinyEditor::make('text')->fileAttachmentProvider(
CustomFileAttachmentProvider::make()
->collection('text')
)
The uploaded image is saved:
filament-tinyeditor/src/TinyEditor.php
Line 120 in 740677b
But it is geting cleaned right after:
filament-tinyeditor/src/TinyEditor.php
Line 152 in 740677b
The image HTML tag gets the new uploaded uuid from the custom provider:
filament-tinyeditor/src/TinyEditor.php
Line 125 in 740677b
But the $fileAttachmentIds array is filled with the old data:
filament-tinyeditor/src/TinyEditor.php
Line 129 in 740677b
Please change the 129 Line to:
$fileAttachmentIds[] = $nodeAttrsId;
And it will be good :)