diff --git a/CodemirrorWidget.php b/CodemirrorWidget.php index 7a2e799..5f52b11 100644 --- a/CodemirrorWidget.php +++ b/CodemirrorWidget.php @@ -95,7 +95,7 @@ protected function _registerPlugin() $id = $this->options['id']; $settings = Json::encode($this->clientOptions); - $js = "CodeMirror.fromTextArea(document.getElementById('$id'), $settings)"; + $js = "CodeMirror.fromTextArea(document.getElementById('$id'), $settings);"; $view->registerJs($js); }