-
-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding custom plugin to config renders all other plugins implicitly included as not found #202
Comments
It is a very simple custom submenu where one can insert/paste in an <iframe> map from Google maps or OSM (with some regex checks).
` |
Yup, "se-submenu" is a required class name. |
Yes the submenu works fine. |
How exactly did you put the button list? buttonList: [
['undo', 'redo', 'image'],
[
{
name: 'custom_plugin_submenu',
dataCommand: 'custom_plugin_submenu',
buttonClass:'',
title:'Custom plugin of the submenu',
dataDisplay:'submenu',
innerHTML:'<i class="se-icon-add"></i>'
}
]
] |
OK. Config looks as follows:
:
|
I found the problem. This does not work with custom plugins. |
The 2.26.0 version has been updated. |
Thanks for your efforts on this!
Note: I think this is not a bug but since I am not using js modules (no import/export) and accessing suneditor via
"https://cdn.jsdelivr.net/npm/suneditor@2.25.0/dist/suneditor.min.js"
, I am simply not sure what the best way is to solve my issue.When adding a new custom plugin:
plugins: [custom_plugin_submenu],
all other plugins included with "buttonList" shown an error: not found (although buttons are there).
Is there instead a possibility to add a custom plugin to the list of already defined ones (defined via buttonList)?
And perhaps a documentation issue on submenu plugin example: one need to add class="se-submenu" to the submenu html code. The Eventlistener does not trigger otherwise.
The text was updated successfully, but these errors were encountered: