Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #6821 Fix hook_ckeditor_PLUGIN_plugin_check documentation [skip_tests] #4991

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

bennybobw
Copy link

The foreach loop in the documentation was incorrect and it doesn't reflect the current structure of the array. Additionally, I think we should change $row to $group because we're looping through the groups set up in each of the toolbar rows.

Fixes Issue #6821

Fixes backdrop/backdrop-issues#6821

The foreach loop in the documentation was incorrect and it doesn't
reflect the current structure of the array. Additionally, I think we
should change $row to $group because we're looping through the groups
set up in each of the toolbar rows.
@backdrop-ci
Copy link
Collaborator

@dragonbot
Copy link
Collaborator

Tugboat has finished building a preview for this pull request!

Website: https://pr4991-uhsjtrpn5vc1etys3ugkrzmx6dtrklzc.tugboatqa.com/
Username: admin
Password: e548e5ee55d9

This preview will automatically expire on the 10th of March, 2025.

foreach ($format->editor_settings['toolbar']['buttons'] as $row) {
if (in_array('Underline', $row)) {
return TRUE;
$toolbars = $format->editor_settings['toolbar'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment should be preserved, since it correctly explains what the code does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix typos in hook_ckeditor_PLUGIN_plugin_check documentation
4 participants