protected function CkEditorContext::getKeys in Lightning Core 8.2
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.3 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 169
Class
- CkEditorContext
- Contains step definitions for working with CKEditor instances.
Namespace
Acquia\LightningExtension\ContextCode
protected function getKeys() {
$keys = $this
->getSession()
->evaluateScript('Object.keys(CKEDITOR.instances).join(",")');
return explode(',', $keys);
}