Adding images, only the first image displays, the others show in the code but are not displayed.
Adding images using get components,, only the first image displays, the others show in the code but are not displayed. See example: var domc = editor.DomComponents; __var comps = domc.getComponents(); imagecount = Math.floor((Math.random() * 10000) + 1);; comps.add("<img class=img" + imagecount.toString() + " src=" + response + "> "); comps.add("");
However, add components works fine: var comp1 = domc.addComponent({ tagName: 'img',...
This what addComponent does under the hood:
addComponent(component) {
return this.getComponents().add(component);
}
so I think you're doing something wrong from your side (in your example you add 1 image)
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.