Package io.jmix.grapesjs.component.impl
Class GjsBlocksRepositoryImpl
java.lang.Object
io.jmix.grapesjs.component.impl.GjsBlocksRepositoryImpl
- All Implemented Interfaces:
GjsBlocksRepository
@Component("grpjs_GjsBlocksRepository")
public class GjsBlocksRepositoryImpl
extends Object
implements GjsBlocksRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve registered GrapesJs blockvoidregisterBlock(GjsBlock block) Register custom GrapesJs block which can be used in xml configurationprotected void
-
Field Details
-
registeredBlocks
-
-
Constructor Details
-
GjsBlocksRepositoryImpl
public GjsBlocksRepositoryImpl()
-
-
Method Details
-
registerDefaultBlocks
protected void registerDefaultBlocks() -
getBlock
Description copied from interface:GjsBlocksRepositoryRetrieve registered GrapesJs block- Specified by:
getBlockin interfaceGjsBlocksRepository- Parameters:
name- block name- Returns:
- GrapesJs block descriptor
-
registerBlock
Description copied from interface:GjsBlocksRepositoryRegister custom GrapesJs block which can be used in xml configuration- Specified by:
registerBlockin interfaceGjsBlocksRepository- Parameters:
block- GrapesJs block descriptor
-