Umbau custom blocks
This commit is contained in:
10
public/assets/js/bridge/blocks-custom/elements/image.js
Normal file
10
public/assets/js/bridge/blocks-custom/elements/image.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(function(){
|
||||
window.BridgeBlocksCustomElements = window.BridgeBlocksCustomElements || [];
|
||||
window.BridgeBlocksCustomElements.push(function(ctx){
|
||||
const { bm, addOnce, css } = ctx;
|
||||
addOnce(bm, 'cust-image', { id:'cust-image', label:'🖼️ Bild',
|
||||
content:`<div style="${css({'text-align':'center',margin:'0 0 16px'})}">
|
||||
<img src="https://placehold.co/600x300" alt="Bild" style="${css({width:'100%',height:'auto','max-width':'600px',border:'0',display:'inline-block'})}"></div>`
|
||||
});
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user