You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm missing something, but how can I support multilanguage for the button's tooltip of my custom plugin?
In the examples I see this.title is set in the add method of the plugin, that doesn't seem to work for me. I also tried to extend the language object which is used as lang property in the options argument of SunEditor.create, unfortunately that didn't work either. I scanned the source code, but I did not found a line of code where the tooltip should be translated (_createButton). Seems like it's just using the plugin name.
How can I fix this?
The only I get around is using the onLoad event, like:
Maybe I'm missing something, but how can I support multilanguage for the button's tooltip of my custom plugin?
In the examples I see this.title is set in the add method of the plugin, that doesn't seem to work for me. I also tried to extend the language object which is used as lang property in the options argument of SunEditor.create, unfortunately that didn't work either. I scanned the source code, but I did not found a line of code where the tooltip should be translated (_createButton). Seems like it's just using the plugin name.
How can I fix this?
The only I get around is using the onLoad event, like:
instance.onload = (core, reload) => { core.context.element.toolbar.querySelector('[data-command="foo"] .se-tooltip-inner .se-tooltip-text').textContent= 'bar'; }
Thanks in advance.
Version
2.46.3
The text was updated successfully, but these errors were encountered: