(video demo) Strange form behaviour in chrome and ff under linux

Under linux but i think is the same on other os I have a form that uses a template to pre-fill the email message (rich text editor). This functionality was working perfectly until recently. I typically update the project with "composer update" before implementing new code changes. Could something in the latest update be causing this issue? It works if i write something in the richeditor before the template selection look at the video
13 Replies
Soundmit
Soundmit3mo ago
with a regular 'Textarea' it wworks.. but i need the richeditor no one?
toeknee
toeknee3mo ago
The video ins't viewable
Soundmit
Soundmit3mo ago
ah sorry, try now
toeknee
toeknee3mo ago
Can you try: php artisan filament:upgrade
Soundmit
Soundmit3mo ago
nothing to upgrade rancesco@cactus:~/PDev/rpspro> dart filament:upgrade ⇂ public/js/filament/forms/components/color-picker.js
⇂ public/js/filament/forms/components/date-time-picker.js
⇂ public/js/filament/forms/components/file-upload.js
⇂ public/js/filament/forms/components/key-value.js
⇂ public/js/filament/forms/components/markdown-editor.js
⇂ public/js/filament/forms/components/rich-editor.js
⇂ public/js/filament/forms/components/select.js
⇂ public/js/filament/forms/components/tags-input.js
⇂ public/js/filament/forms/components/textarea.js
⇂ public/js/filament/tables/components/table.js
⇂ public/js/filament/widgets/components/chart.js
⇂ public/js/filament/widgets/components/stats-overview/stat/chart.js
⇂ public/js/app/components/apexcharts.js
⇂ public/js/filament/filament/app.js
⇂ public/js/filament/filament/echo.js
⇂ public/js/filament/notifications/notifications.js
⇂ public/js/filament/support/async-alpine.js
⇂ public/js/filament/support/support.js
⇂ public/js/heloufir/filament-kanban/filament-kanban-sortable.js
⇂ public/css/filament/forms/forms.css
⇂ public/css/filament/support/support.css
⇂ public/css/heloufir/filament-kanban/filament-kanban.css
⇂ public/css/filament/filament/app.css
INFO Successfully published assets!
INFO Configuration cache cleared successfully.
INFO Route cache cleared successfully.
INFO Compiled views cleared successfully.
INFO Successfully upgraded!
toeknee
toeknee3mo ago
please provide: php artisan about and then also see what your console shows.
Soundmit
Soundmit3mo ago
GitHub
Fix: Rich editor not displaying data when changing languages by col...
Description closes #11880 The value of the editor is now captured before the nextTick callback as a local variable so that state changes work properly Code style composer cs command has been run....
Daniel Plomp
Daniel Plomp3w ago
@Soundmit @toeknee I have a RichEditor inside a Builder. It seems that the behavior you described is fixed when I use the RichEditor outside of the builder (I copy content from another field to the RichEditor), but when inside the Builder, it is not showing the changes. But they are saved in the field. This code is extracting the HTML and creates a Builder Block:
private static function extractTextToContent($rawHtml): array
{
// First, clean up the HTML using Purify
$html = Purify::clean($rawHtml);

// Add the last block if there's any content left
$blocks[] = [
'data' => ['content' => $html, 'theming' => null],
'type' => 'text_block',
];

return $blocks;
}
private static function extractTextToContent($rawHtml): array
{
// First, clean up the HTML using Purify
$html = Purify::clean($rawHtml);

// Add the last block if there's any content left
$blocks[] = [
'data' => ['content' => $html, 'theming' => null],
'type' => 'text_block',
];

return $blocks;
}
The next code is fired from a hintAction:
$set('content', []);
$blocks = $this->extractTextToContent($state);
$set('content', $blocks);
$set('content', []);
$blocks = $this->extractTextToContent($state);
$set('content', $blocks);
Can I update or refresh the Builder somehow?
toeknee
toeknee3w ago
Can you try the latest release? Since a fix was added with fixing rich editor loading states @Daniel Plomp
Daniel Plomp
Daniel Plomp3w ago
Yes, I did installed it yesterday and it now seems to work. At first not, but maybe some caching thing.