How to add required plugins in custom module

Created on 6 March 2016, almost 9 years ago
Updated 20 September 2023, over 1 year ago

I have a situation where I have created a custom module to add some plugins to our CKEditor setup. It works GREAT! Thanks for you documentation in other tickets on how to get the buttons working, that was awesome.

My problem comes in after though. So, my plugins require other plugins, and I am not allowed to put the required plugins in the library as that is part of a profile that "must not change" in our organization. So, in essence, the module where I have my custom plugins should also carry in the required plugins with it.

These are not plugins that have a button, they are like "clipboard" etc. So, I don't want a checkbox on the admin, I just want this to load, from the module, if the custom module is enabled, or if it's easier, from any of the plugins that require it.

Currently, if the required plugins aren't in the profile's library, I can enable them as if they were buttons by adding them as buttons in the custom module, but that is very confusing, as they don't show up as buttons, and users will not recognize that they need them, so they won't check the buttons. And if they don't check the buttons, the CKEditor crashes saying it couldn't find the required library.

How can I make this happen? Can I do this with a WYSIWYG API hook, or with some CKEditor command from one of the plugins that requires the other plugin?

Thanks again!

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Plugins

Created by

πŸ‡ΊπŸ‡ΈUnited States crashtest_ Richland, WA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024