Question
Adding mathjax plugin to Rich Text Editor
Hello,
Is there a method or a tool OOTB to enable Mathjax plugin in the rich text editor ?
if no and the only way is following the instructions provided in the following article(https://community.pega.com/knowledgebase/articles/adding-plug-ins-rich-text-editor), what is the function from mathjax that should be called in the exec method.
Thanks in advance
Dany
***Edited by Moderator: Pallavi to update platform capability tags***
***Edited by Moderator Marissa to update SR Details***
In the given PSC documentation link, "MyCustomPlugin" is the name of the plugin. A plugin definition needs to be pushed into the map associated with the name of the plugin.
Plugin definition should contain a method called "init" which gets called on plugin initialization. Inside this method, we can add commands and buttons.
A "command" is a named operation to be performed. The editor instance is available as the parameter to the command's exec method. Any of the editor API (CKEditor 4 Documentation) and other arbitrary JS code can be executed from within the command's exec method.
A "button" is a toolbar component. Each button has to be associated with a command. On clicking the button the associated command's exec method gets called.
Please note that any extra JS files can be added or referenced on the harness containing the section which contains the RTE.
Refer the CKEditor 4 documentation Mathjax library link
https://ckeditor.com/docs/ckeditor4/latest/guide/dev_mathjax.html#setting-the-path-to-mathjax-library
will explain how to Create Mathematical Formulas.
See if this helps.