backdrop-contrib / ckeditor

NOW IN BACKDROP CORE 🎉 Rich text editor integration using the CKeditor library.
GNU General Public License v2.0
0 stars 0 forks source link

Notice issued when editing a user #4

Open vtad opened 9 years ago

vtad commented 9 years ago

If I edit a user I get: Notice: Undefined index: #user_category in ckeditor_form_user_profile_form_alter() (line 257 of /home/www/backdrop/modules/ckeditor-1.x-1.x/ckeditor.module).

Graham-72 commented 9 years ago

Thanks for reporting this. Drupal has a parameter $form['#user_category'] in account settings, and this doesn't seem to exist in Backdrop. I will find out what to use in its place. Something is needed in order to get Rich Text Editor settings showing in the account settings form.

Graham-72 commented 9 years ago

I have made a change to line 257 of ckeditor.module so that the check is now " if ($form['#attributes']['class'][0] == 'user-profile-form') " rather than " if ($form['#user_category'] == 'account') ".