Issue #1647Opened December 11, 2018by Abhisheknanda13444630 reactions

How to display src of image component?

Question

hi @artf i want to display my image when i drag and drop image component

Code SnippetTEXT
here is my code 

`bm.add( 'image', {
        label: opt.imageBlkLabel,
        category: opt.categoryElementsLabel,
        content: {
            type: 'image',
            src: 'http://placehold.it/250x150/78c5d6/fff/',
            style: {color:'black'},
        },
        attributes: {
            class:'gjs-fonts gjs-f-image'
        }
    });`

i used this with the latest version of grapesjs it stops working with the latest version 
when i drag and drop image component on canvas it appears nothing but element is still on canvas 
and when i click on toggle image button 2 times it gives me result as expected.

Answers (1)

lock[bot]December 11, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.