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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve registered GrapesJs blockvoid
registerBlock
(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:GjsBlocksRepository
Retrieve registered GrapesJs block- Specified by:
getBlock
in interfaceGjsBlocksRepository
- Parameters:
name
- block name- Returns:
- GrapesJs block descriptor
-
registerBlock
Description copied from interface:GjsBlocksRepository
Register custom GrapesJs block which can be used in xml configuration- Specified by:
registerBlock
in interfaceGjsBlocksRepository
- Parameters:
block
- GrapesJs block descriptor
-