for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Sergii Bondarenko, <[email protected]>
*/
namespace Drupal\TqExtension\Utils\Wysiwyg;
// Contexts.
use Drupal\TqExtension\Context\RawTqContext;
class JWysiwyg extends Wysiwyg
{
public function __construct(RawTqContext $context)
$this->setContext($context);
$this->setObject("jQuery('#%s')");
}
* {@inheritdoc}
public function fill($text, $selector = '')
$this->execute('wysiwyg', $selector, ['setContent', $text]);
public function type($text, $selector = '')
$this->execute('wysiwyg', $selector, ['insertHtml', $text]);
public function read($selector = '')
return $this->execute('wysiwyg', $selector, ['getContent']);