Skip to content

Commit

Permalink
XWIKI-21523: Fields in form of WYSIWYG configuration are not accessible
Browse files Browse the repository at this point in the history
* Fixed case on ids to match new codestyle
  • Loading branch information
Sereza7 committed Feb 28, 2024
1 parent 4d4af93 commit 8599be3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ require(['jquery', 'xwiki-ckeditor', 'bootstrap-select'], function($, ckeditorPr
var commaSeparator = /\s*,\s*/;
var enhanceConfig = function(editor) {
var availablePlugins = editor.config.plugins.split(commaSeparator);
enhanceList($('#CKEditor\\.ConfigClass_0_removePlugins'), availablePlugins, 'availablePluginsSelect');
enhanceList($('#CKEditor\\.ConfigClass_0_removePlugins'), availablePlugins, 'available-plugins-select');

var availableButtons = Object.keys(editor.ui.items);
enhanceList($('#CKEditor\\.ConfigClass_0_removeButtons'), availableButtons, 'availableButtonsSelect');
enhanceList($('#CKEditor\\.ConfigClass_0_removeButtons'), availableButtons, 'available-buttons-select');

enhanceTextArea($('#CKEditor\\.ConfigClass_0_advanced'), 'advancedTextArea');
enhanceTextArea($('#CKEditor\\.ConfigClass_0_advanced'), 'advanced-text-area');
};

var enhanceList = function(input, allowedValues, selectId) {
Expand Down

0 comments on commit 8599be3

Please sign in to comment.