how can i change image modal title? #5836
Unanswered
AndreeaCoaja
asked this question in
Q&A
Replies: 1 comment
-
The title of the asset manager modal can be changed via the i18n module (here is the string reference). The type of the component has nothing to do with the type of the asset. You should create the appropriate component to handle your assets properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have looked through this doc: https://github.com/GrapesJS/grapesjs/blob/master/src/asset_manager/config/config.ts and i could not find any way I can change the title from image modal:


I have tried like this so far, but it didn't work:
Is there any easy way I can change it?
Another question is regarding to uploading of files different than images. I did a function where as return an array with data is sent as in documentation:



The problem is that in pages array from json (after this array is sent), the type of the file is still image. While the type of the file in assets array is correct:
How can i change this? And is it possible to diplay the icon of a file different if it's not an image?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions