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.
Hello
I got problem. Toolbar in ckeditor profile is not saved for me. Seems it's occured because toolbar is textarea but ckeditor set value of toolbar as
.attr('value', value);
It will work for input with type text, but not for textarea.
It should be:
.val(value);
Comment | File | Size | Author |
---|---|---|---|
#1 | 2324383-Toolbar_in_Ckeditor_profile_is_not_saved-1.patch | 1.12 KB | eugene.ilyin |
Comments
Comment #1
eugene.ilyin CreditAttribution: eugene.ilyin commentedI prepared patch to solve this problem
Comment #2
Helrunar CreditAttribution: Helrunar commentedPatch is not working for me.
Comment #3
eugene.ilyin CreditAttribution: eugene.ilyin commentedWhat the problem?
Comment #4
eugene.ilyin CreditAttribution: eugene.ilyin commentedComment #5
Helrunar CreditAttribution: Helrunar commentedAfter aplying the Patch i am also not able to save the modified profil. I want to remove some Buttons, save and nothing is happend.
Comment #6
eugene.ilyin CreditAttribution: eugene.ilyin commentedStrange. Which version of CKeditor do you use? Maybe you have js errors?
Comment #7
Helrunar CreditAttribution: Helrunar commentedI am using Version 7.x-1.5 and CKEditor 4.4.3. Thats crazy, now it save my changes. I will test it in another installation again.
Comment #8
eugene.ilyin CreditAttribution: eugene.ilyin commentedDrupal magic ;) Can anybody test this patch?
Comment #9
Helrunar CreditAttribution: Helrunar commentedOk, it's seems to be a problem with jQuery1.10. When i switch back to jQuery1.7 all work fine. Tested on a new and clean installation.
Comment #10
jwilson3Technically, this is a duplicate of an earlier issue #2275691: CKEditor 1.14: in "Editor appearance" the Current toolbar can not be changed, however, this issue has a patch AND the patch works.
In addition to the patch working, its actually best practices to use jQuery
.val('somevalue')
instead of.attr('value', 'somevalue')
, so marking this RTBC, as it needs to go in, regardless of whether this does or does not solve the toolbar problem for others. ;)Comment #11
jcisio CreditAttribution: jcisio commentedDo people test with jQuery 1.4.4 (the one shipped with core), 1.7 and 1.10?
Comment #12
eugene.ilyin CreditAttribution: eugene.ilyin commentedBug, which I described is reproduced for me only with jQuery 1.10.
I added patch and it works correctly for jQuery 1.4.4, 1.7 and 1.10
Comment #13
jcisio CreditAttribution: jcisio commentedCommitted and pushed. Thanks!
Comment #16
colanIn case anyone is searching for the error message, it's "Enter a valid toolbar configuration".
Comment #17
kenorb CreditAttribution: kenorb commented