- .on('CKEditorToolbarChanged.ckeditorAdminPluginSettings', (event, action, button) => {
- const $pluginSettings = $ckeditorPluginSettings
- .find(`[data-ckeditor-buttons~=${button}]`);
-
- // No settings for this button.
- if ($pluginSettings.length === 0) {
- return;
- }
-
- const verticalTab = $pluginSettings.data('verticalTab');
- const activeButtons = $pluginSettings.data('ckeditorButtonPluginSettingsActiveButtons');
- if (action === 'added') {
- activeButtons.push(button);
- // Show this plugin's settings if >=1 of its buttons are active.
- if (verticalTab) {
- verticalTab.tabShow();
- }
- else {
- // On very narrow viewports, Vertical Tabs remain fieldsets.
- $pluginSettings.show();
+ .on(
+ 'CKEditorToolbarChanged.ckeditorAdminPluginSettings',
+ (event, action, button) => {
+ const $pluginSettings = $ckeditorPluginSettings.find(
+ `[data-ckeditor-buttons~=${button}]`,
+ );
+
+ // No settings for this button.
+ if ($pluginSettings.length === 0) {
+ return;