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

[Bug]: Image in Rich Text Editor not showing when I try re-editing #1629

Open
fzerman opened this issue Feb 13, 2024 · 1 comment
Open

[Bug]: Image in Rich Text Editor not showing when I try re-editing #1629

fzerman opened this issue Feb 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fzerman
Copy link

fzerman commented Feb 13, 2024

Contact Details

I will watch this issue

What happened?

Adding images via rich text input is working and adding images to content via data URL. And in the record view page, I can see it.

After adding an image via rich text input:
image

When I click the "Edit", it disappears
image

Also when I see the current HTML code on edit page, there is no image
image

Bug prevalence

Image in Rich Text Editor not showing when I try re-editing

AdminJS dependencies version

"@adminjs/design-system": "^4.0.3",
"@adminjs/express": "^6.0.1",
"@adminjs/sequelize": "^4.0.0",
"@adminjs/upload": "^4.0.2",
"adminjs": "^7.3.0",

What browsers do you see the problem on?

No response

Relevant log output

All logs are relevant with i18next issues not any relevant log

Relevant code that's giving you issues

// BLOG NAVIGATION
    {
      resource: Post,
      options: {
        navigation: blogNavigation,
        properties: {
          content: {
            type: "richtext",
          },
          // thumbnail: {
          //   isVisible: false,
          // },
          createdAt: {
            isVisible: {
              edit: false,
              show: true,
            },
          },
          updatedAt: {
            isVisible: {
              edit: false,
              show: true,
            },
          },
        },
      },
      features: [
        uploadFileFeature({
          provider: {
            //@ts-ignore
            local: {
              bucket: "public/uploads",
              opts: {
                baseUrl: BASE_URL + "public/uploads",
              },
            },
          },
          uploadPath(record, filename) {
            return `blog/${record.id()}/${filename.replaceAll(" ", "-")}`;
          },
          properties: {
            key: "thumbnail",
            mimeType: "thumbnailMimeType",
          },
          componentLoader,
        }),
      ],
    },
@fzerman fzerman added the bug Something isn't working label Feb 13, 2024
@bitpickle
Copy link

bitpickle commented May 21, 2024

Same problem here, any workaround?

in my case I am adding the image without url and it is being saved as base64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants