Browse Source
Merge pull request #3585 from Progressive-Programmer/patch-2
Update Assets.md
pull/3670/head
Artur Arseniev
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
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' |
|
|
|
}, |
|
|
|
], |
|
|
|
} |
|
|
|
|