private function CkEditorContext::getKeys in Lightning Core 8.3
Same name and namespace in other branches
- 8.5 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
- 8 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
- 8.2 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
- 8.4 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
Returns all CKEditor instance IDs.
Return value
string[] The CKEditor instance IDs.
1 call to CkEditorContext::getKeys()
- CkEditorContext::getDefault in tests/
contexts/ CkEditorContext.behat.inc - Returns the first available CKEditor instance ID.
File
- tests/
contexts/ CkEditorContext.behat.inc, line 170
Class
- CkEditorContext
- Contains step definitions for working with CKEditor instances.
Namespace
Acquia\LightningExtension\ContextCode
private function getKeys() {
$keys = $this
->getSession()
->evaluateScript('Object.keys(CKEDITOR.instances).join(",")');
return explode(',', $keys);
}