* [misc] fix bug on setValueInZenEditor.

This commit is contained in:
luxuyang
2024-10-29 09:45:50 +08:00
committed by 朱金勇
parent 8fc586039f
commit 66006f63b7
+2 -1
View File
@@ -1200,6 +1200,7 @@ class dom
*/
public function setValueInZenEditor($value)
{
return $this->driver->executeScript("arguments[0].setHTML('$value');", array($this->element));
$value = json_encode($value);
return $this->driver->executeScript("arguments[0].setHTML($value);", array($this->element));
}
}