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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getOptions
(String optionsFile) Retrieve registered GrapesJs pluginprotected void
void
registerPlugin
(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:GjsPluginsRepository
Retrieve registered GrapesJs plugin- Specified by:
getPlugin
in interfaceGjsPluginsRepository
- Parameters:
pluginXsdCode
- plugin code from xml screen descriptor- Returns:
- GrapesJs plugin descriptor
-
registerPlugin
Description copied from interface:GjsPluginsRepository
Register custom GrapesJs plugin which can be used in xml configuration- Specified by:
registerPlugin
in interfaceGjsPluginsRepository
- Parameters:
pluginXsdCode
- plugin coe from xml screen descriptorplugin
- GrapesJs plugin descriptor with name and options
-
getOptions
-