Umbau custom blocks
This commit is contained in:
20
public/assets/js/bridge/blocks-custom/elements/text.js
Normal file
20
public/assets/js/bridge/blocks-custom/elements/text.js
Normal file
@@ -0,0 +1,20 @@
|
||||
(function(){
|
||||
window.BridgeBlocksCustomElements = window.BridgeBlocksCustomElements || [];
|
||||
window.BridgeBlocksCustomElements.push(function(ctx){
|
||||
const { bm, addOnce } = ctx;
|
||||
addOnce(bm, 'cust-text', { id:'cust-text', label:'📝 Text',
|
||||
content:{
|
||||
type:'text',
|
||||
tagName:'p',
|
||||
content:'Dies ist ein Absatz. Doppelklick zum Bearbeiten.',
|
||||
style:{
|
||||
'font-family':'Arial,sans-serif',
|
||||
'font-size':'14px',
|
||||
'line-height':'1.5',
|
||||
color:'#0f172a',
|
||||
margin:'0 0 12px'
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user