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 Details

  • Constructor Details

    • GjsBlocksRepositoryImpl

      public GjsBlocksRepositoryImpl()
  • Method Details

    • registerDefaultBlocks

      protected void registerDefaultBlocks()
    • getBlock

      public GjsBlock getBlock(String name)
      Description copied from interface: GjsBlocksRepository
      Retrieve registered GrapesJs block
      Specified by:
      getBlock in interface GjsBlocksRepository
      Parameters:
      name - block name
      Returns:
      GrapesJs block descriptor
    • registerBlock

      public void registerBlock(GjsBlock block)
      Description copied from interface: GjsBlocksRepository
      Register custom GrapesJs block which can be used in xml configuration
      Specified by:
      registerBlock in interface GjsBlocksRepository
      Parameters:
      block - GrapesJs block descriptor