Adding an external plug-in to the Rich text editor
Provide your users with tools to perform complex operations in the Rich text editor control by adding external plug-ins. For example, you can install a plug-in that supports mathematical notation to improve the usefulness of the Rich text editor for scientific audiences.
In the header of Dev Studio, click
.On the New tab, define the text file record configuration and context:
In the Label field, enter a meaningful name for the file.
In the App Name (directory) field, enter the name of the server directory in which you want to place the file.
In the File Type (extension) field, enter js.
In the Context section, define the development branch and ruleset for the file.
Click Create and open.
In the text field, enter the plugin code from the
plugin.js
file.Click Save.
Create a text file that contains the text of each resource that the
plugin.js
file references by repeating steps 1 through 2.Upload each image that the
plugin.js
file references by performing the following actions:In the header of Dev Studio, click
.In the Label field, enter a meaningful name for the file.
In the App Name (directory) field, enter the name of the server directory in which you want to place the file.
In the File Type (extension) field, enter the file type of your image.
In the Context section, define the development branch and ruleset for the file.
Click Create and open.
In the File controls section, click Upload file.
In the Upload file dialog box, click Choose file, and then select the file for the upload.
Click Upload file, and then, in the file tab, click Save.
In the plug-in file that you created in 1, ensure that all references to resources point to resource locations in Pega Platform.
In the plug-in text, replace the original plug-in reference with pega.u.d.customRTEPlugins.
Save the plug-in.
Create a plug-in file in Pega Platform
Add plug-in resources
Align the plug-in with Pega Platform
Previous topic Creating a new plug-in for the Rich text editor Next topic Paragraphs