From 2284b66d03d9f6c1dbd60dde383afd4cea6a4b36 Mon Sep 17 00:00:00 2001 From: Jeffrey Guo Date: Fri, 1 Aug 2014 22:30:20 +1200 Subject: [PATCH] fill in HTML Editor --- .../BehatExtension/Context/BasicContext.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/SilverStripe/BehatExtension/Context/BasicContext.php b/src/SilverStripe/BehatExtension/Context/BasicContext.php index 038b773..2b59abf 100644 --- a/src/SilverStripe/BehatExtension/Context/BasicContext.php +++ b/src/SilverStripe/BehatExtension/Context/BasicContext.php @@ -780,4 +780,33 @@ JS; assertTrue(preg_match("/$textAfter(.*?)$textBefore/", $text) === 1, $text); } } + + /** + * Fills in HTML Editor (rich-text editor, e.g. TinyMCE) with specified id|name|label. + * @example I fill in "Terms and Conditions" HTML Editor with "test User Terms and Conditions1" + * @When /^(?:|I )fill in "(?P