Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Every time I try to save the form Add a new CKEditor profile
the validation fails with the error Enter a valid toolbar configuration.
but there is no indication as to what that means, or even what part of the form is failing validation.
I've tried this three times to add a profile, and every time validation fails, all the buttons I added to the toolbar disappear. VERY FRUSTRATING.
Please add a useful validation message, or at least indicate the field on the form that is causing the validation error.
Comments
Comment #1
jenlamptonComment #2
jenlamptonComment #3
fchandler CreditAttribution: fchandler commentedsame here
Comment #4
learnbydrop CreditAttribution: learnbydrop commented"Enter a valid toolbar configuration." error message showing, when creating a new profile.....
Comment #5
learnbydrop CreditAttribution: learnbydrop commentedChange the modifications::
File: modules/ckeditor/includes/ckeditor.admin.js
Remove this line 123:
(-) $("#edit-toolbar").attr('value',text);
(+) $("#edit-toolbar").val(text);
File: modules/ckeditor/includes/jqueryUI/sort.js
Remove this line 39:
(-) jQuery("#edit-toolbar").attr('value', tools);
(+) jQuery("#edit-toolbar").val(tools);
These modifications will resolved the issue, when creating a new profile.
Comment #6
acrosmanFixed in issue: https://www.drupal.org/node/2324383