Browse Source

Update Assets.md

you can add asset display name by passing the name of the file with key 'name'
pull/3585/head
Aman Singh 5 years ago
committed by GitHub
parent
commit
a5c58dc714
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/modules/Assets.md

6
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'
},
],
}

Loading…
Cancel
Save