From b033c163900c1318e41e39011e34a95d181a9632 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 26 Mar 2014 15:56:21 +0800 Subject: [PATCH] MDL-44084 behat: Fixed behat set_value for atto editor --- lib/behat/form_field/behat_form_editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/behat/form_field/behat_form_editor.php b/lib/behat/form_field/behat_form_editor.php index b02be6efa05..43d8377ff70 100644 --- a/lib/behat/form_field/behat_form_editor.php +++ b/lib/behat/form_field/behat_form_editor.php @@ -52,7 +52,7 @@ class behat_form_editor extends behat_form_textarea { if ($this->running_javascript()) { $value = addslashes($value); $js = ' -var editor = M.editor_atto.get_editable_node("'.$editorid.'"); +var editor = Y.one(document.getElementById("'.$editorid.'editable")); if (editor) { editor.setHTML("' . $value . '").focus(); } else { -- 2.11.4.GIT