November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I have a custom javascript which am trying to load as an external plugin. The javascript uses below format to add the plugin. I am not able to find if this is still a valid way to add external plugin.
tinymce.PluginManager.add('metricconvert', function (editor, url) {}
See the docs here: https://docs.developers.optimizely.com/content-management-system/docs/plug-ins#add-a-tinymce-plug-in
services.Configure<TinyMceConfiguration>(config =>
{
config.Default()
.AddExternalPlugin("custom-plugin", "alloy/plugins/custom-plugin.js");
});
Finally found that the issue was the custom plugin (JS file) itself. With the new version of TinyMce the custom plugin implementation is updated.
Before:
editor.addButton('metricconvert') and using onClick function |
Latest Implementation: Use below format and replace onClick to onAction.
editor.ui.registry.addButton('metricconvert', { text: 'Metric Convert', onAction: function () { |
More details available here : https://blogs.perficient.com/2023/10/26/adding-custom-external-plugin-to-tinymce/
Hello All,
Looking for help on adding external custom plugins to TinyMce 4.4. version. I am not seeing any online resource that has the details.
Thanks,