Class GjsPluginsRepositoryImpl

java.lang.Object
io.jmix.grapesjs.component.impl.GjsPluginsRepositoryImpl
All Implemented Interfaces:
GjsPluginsRepository

@Component("grpjs_GjsPluginsRepository") public class GjsPluginsRepositoryImpl extends Object implements GjsPluginsRepository
  • Field Details

  • Constructor Details

    • GjsPluginsRepositoryImpl

      public GjsPluginsRepositoryImpl()
  • Method Details

    • registerDefaultPlugins

      @PostConstruct protected void registerDefaultPlugins()
    • getPlugin

      public GjsPlugin getPlugin(String pluginXsdCode)
      Description copied from interface: GjsPluginsRepository
      Retrieve registered GrapesJs plugin
      Specified by:
      getPlugin in interface GjsPluginsRepository
      Parameters:
      pluginXsdCode - plugin code from xml screen descriptor
      Returns:
      GrapesJs plugin descriptor
    • registerPlugin

      public void registerPlugin(String pluginXsdCode, GjsPlugin plugin)
      Description copied from interface: GjsPluginsRepository
      Register custom GrapesJs plugin which can be used in xml configuration
      Specified by:
      registerPlugin in interface GjsPluginsRepository
      Parameters:
      pluginXsdCode - plugin coe from xml screen descriptor
      plugin - GrapesJs plugin descriptor with name and options
    • getOptions

      protected String getOptions(String optionsFile)