Package io.jmix.grapesjs.component.impl
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetOptions(String optionsFile) Retrieve registered GrapesJs pluginprotected voidvoidregisterPlugin(String pluginXsdCode, GjsPlugin plugin) Register custom GrapesJs plugin which can be used in xml configuration
-
Field Details
-
resources
-
registeredPlugins
-
-
Constructor Details
-
GjsPluginsRepositoryImpl
public GjsPluginsRepositoryImpl()
-
-
Method Details
-
registerDefaultPlugins
@PostConstruct protected void registerDefaultPlugins() -
getPlugin
Description copied from interface:GjsPluginsRepositoryRetrieve registered GrapesJs plugin- Specified by:
getPluginin interfaceGjsPluginsRepository- Parameters:
pluginXsdCode- plugin code from xml screen descriptor- Returns:
- GrapesJs plugin descriptor
-
registerPlugin
Description copied from interface:GjsPluginsRepositoryRegister custom GrapesJs plugin which can be used in xml configuration- Specified by:
registerPluginin interfaceGjsPluginsRepository- Parameters:
pluginXsdCode- plugin coe from xml screen descriptorplugin- GrapesJs plugin descriptor with name and options
-
getOptions
-