Displaying/Editing Formulas in RichTextEditor
http://sdk.ckeditor.com/samples/mathjax.html Are there any plans of making this feature available within Pega? Or does anyone have any suggestions on how to integrate this plugin ourselves? Thanks
Peter
Did you miss our WEBINAR: Transform IT & Operations with AI: Pega Blueprint Advantage? Watch the REPLAY!
This webinar will show how AI is revolutionizing these functions and how Pega’s Blueprint Solution can help you fully leverage AI to meet your goals.
Pega Cloud status shows the overall health of Pega Cloud products and services, by region.
Manage your subscriptions by clicking the Subscribe To Updates button. Check out our Support document for more information: Pega Cloud Status
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Hi Peter,
Pega 7.1.8 uses CKEditor 4.3.x and this supports the MathJax plugin. Although, it's not recommended, you may add the plugins as follows:
The new plugin should be pushed into the plugin map pega.u.d.customRTEPlugins.
pega.u.d.customRTEPlugins = pega.u.d.customRTEPlugins || {}; /* Initialize the map if not initialized already. */
pega.u.d.customRTEPlugins["MyCustomPlugin"] = {
init: function(editor) {
editor.addCommand("cmdSayHello", {
exec: function(editor) {
alert("HELLO!");
}
});
editor.addCommand("cmdSayBye", {
exec: function(editor) {
alert("BYE!");
}
});
editor.ui.addButton("SayHello", {
label: "Say Hello",
command: "cmdSayHello",
icon: "webwb/pztick.png"
});
editor.ui.addButton("SayBye", {
Hi Peter,
Pega 7.1.8 uses CKEditor 4.3.x and this supports the MathJax plugin. Although, it's not recommended, you may add the plugins as follows:
The new plugin should be pushed into the plugin map pega.u.d.customRTEPlugins.
pega.u.d.customRTEPlugins = pega.u.d.customRTEPlugins || {}; /* Initialize the map if not initialized already. */
pega.u.d.customRTEPlugins["MyCustomPlugin"] = {
init: function(editor) {
editor.addCommand("cmdSayHello", {
exec: function(editor) {
alert("HELLO!");
}
});
editor.addCommand("cmdSayBye", {
exec: function(editor) {
alert("BYE!");
}
});
editor.ui.addButton("SayHello", {
label: "Say Hello",
command: "cmdSayHello",
icon: "webwb/pztick.png"
});
editor.ui.addButton("SayBye", {
label: "Say Bye",
command: "cmdSayBye",
icon: "webwb/pzcross.png"
});
},
buttons: ["SayHello", "SayBye"]
};
In the code above "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.
I hope this helps.
Hi @Rahul Sanghi,
I was able to get the MathJax.js file loaded as well as, I am able to introduce button into CKEditor with your suggestion.
But I am not sure how to call or what to call when the newly introduced button is clicked, to trigger MathJax.
Can you please help us here.
Thanks,
Satya
Hi,
Just to provide an update. Satya worked on this but ran into the issue he mentioned above. Due to the complexities involved and potential (albeit painful) workaround of uploading screenshots of formulas we have put this work on hold for now. We might get back to this at another point in the future.
Thanks
Peter
Discussion
Question
Question
Question Solved
Question
Question
Question
Question Solved
Question Solved
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.