Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TranslateText richTextOption didn't the attach the uploaded images #1651

Open
bangnokia opened this issue Mar 15, 2024 · 0 comments
Open

TranslateText richTextOption didn't the attach the uploaded images #1651

bangnokia opened this issue Mar 15, 2024 · 0 comments
Labels
1.x bug Something isn't working
Milestone

Comments

@bangnokia
Copy link
Contributor

  • Lunar version: 1.x
  • Laravel Version: 10.48.2
  • PHP Version: 8.3.0
  • Database Driver & Version: MySQL 8

Expected Behaviour:

The Image should be inserted in the content of the data

Actual Behaviour:

The images not inserted to the content

Steps To Reproduce:

This also happens when editing the Product description also, so we don't have to creat a custom resource like me xD

For example, we have the Post model, which has column content as json
Use the trait HasTranslations to the Post model.
In the resource form method

 public static function form(Form $form): Form
    {
        return $form
            ->columns(1)
            ->schema([
                TranslatedText::make('content')->label('Content')->optionRichtext(true)->nullable(),
            ]);
    }

we upload the image to the content, it is displayed in the RichEditor
click save -> notification success
But after reloading, the image disappears.
I'm checking in the database, there is also no image here

@bangnokia bangnokia added bug Something isn't working unconfirmed labels Mar 15, 2024
@glennjacobs glennjacobs added this to the v1.0 milestone Mar 15, 2024
@glennjacobs glennjacobs added the 1.x label May 20, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants