Merge pull request #8468 from creative-commoners/pulls/4.3/tinymce-and-behat-help-me

FIX Persist TinyMCE updates when writing with Behat
This commit is contained in:
Robbie Averill 2018-10-11 11:42:53 +02:00 committed by GitHub
commit 648988bc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,10 @@ class CmsFormsContext implements Context
$inputField->getAttribute('id'),
addcslashes($value, "'")
));
$this->getSession()->evaluateScript(sprintf(
"jQuery('#%s').entwine('ss').getEditor().save()",
$inputField->getAttribute('id')
));
}
/**