- Issue created by @sgalindo2388
When using the ckeditor_tippy module with PHP 8+, users encounter warnings when opening the tooltip dialog:
Warning: Undefined array key "editor_object" in /path/to/web/modules/contrib/ckeditor_tippy/src/Form/TooltipEditorDialog.php on line 42 Warning: Trying to access array offset on value of type null in /path/to/web/modules/contrib/ckeditor_tippy/src/Form/TooltipEditorDialog.php on line 42
This results in AJAX errors and prevents the tooltip dialog from working properly.
Add proper isset()
checks before accessing array keys in the TooltipEditorDialog.php file. The code currently tries to access $user_input['editor_object']['text']
without verifying that the 'editor_object' key exists.
None - this is a bug fix that maintains existing functionality while eliminating PHP warnings.
None
None
Active
1.0
Code