From a5c58dc7146485c5f3d194ba65847473fab84c32 Mon Sep 17 00:00:00 2001 From: Aman Singh Date: Thu, 1 Jul 2021 19:34:40 +0530 Subject: [PATCH] Update Assets.md you can add asset display name by passing the name of the file with key 'name' --- docs/modules/Assets.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/modules/Assets.md b/docs/modules/Assets.md index 62efeea75..9704b0bea 100644 --- a/docs/modules/Assets.md +++ b/docs/modules/Assets.md @@ -140,14 +140,16 @@ const editor = grapesjs.init({ type: 'image', src: 'http://placehold.it/350x250/459ba8/fff/image2.jpg', height: 350, - width: 250 + width: 250, + name: 'displayName' }, { // As the 'image' is the base type of assets, omitting it will // be set as `image` by default src: 'http://placehold.it/350x250/79c267/fff/image3.jpg', height: 350, - width: 250 + width: 250, + name: 'displayName' }, ], }