You can use a custom editor that you have developed for an application in multiple applications.
Reuse the custom editor by copying an editor's folder in the editor registry from one application to one or more other applications. Next, import the updated editor registries into their applications.
Follow these steps to reuse custom editors.
Navigate to the editor-registry of the application that contains the custom editor that you want to reuse:
<app-one dir>/config/import/editors/<custom editor>
.Run the following command to export the editor registry of the deployed application to which you want to add the custom editor:
runcommand.bat|sh IFCR exportContent editors <directory>
, where<directory>
indicates the directory on the file system to which the editors registry should be exported.For example:
runcommand.bat IFCR exportContent editors D:\backup2\editors
Paste the folder of the custom editor that you previously copied into the editors directory.
Run the following command to import the updated editor registry of the application to which you added the custom editor: :
runcommand.bat|sh IFCR importContent editors <directory>
, where<directory>
indicates the directory on the file system from which the editors registry should be imported.For example:
runcommand.bat IFCR importContent editors D:\backup2\editors
Map the custom editor in the required cartridge templates of the application.