protected function CKEditorTestTrait::pressEditorButton in Drupal 10
Same name and namespace in other branches
- 8 core/modules/ckeditor/tests/src/Traits/CKEditorTestTrait.php \Drupal\Tests\ckeditor\Traits\CKEditorTestTrait::pressEditorButton()
- 9 core/modules/ckeditor/tests/src/Traits/CKEditorTestTrait.php \Drupal\Tests\ckeditor\Traits\CKEditorTestTrait::pressEditorButton()
Clicks a CKEditor button.
Parameters
string $name: The name of the button, such as `drupallink`, `source`, etc.
string $instance_id: (optional) The CKEditor instance ID. Defaults to 'edit-body-0-value'.
File
- core/
modules/ ckeditor/ tests/ src/ Traits/ CKEditorTestTrait.php, line 60
Class
- CKEditorTestTrait
- Provides methods to test CKEditor.
Namespace
Drupal\Tests\ckeditor\TraitsCode
protected function pressEditorButton($name, $instance_id = 'edit-body-0-value') {
$this
->getEditorButton($name, $instance_id)
->click();
}