Skip to content

Commit

Permalink
Update MarkdownEditor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy authored Nov 24, 2017
1 parent af0f2dc commit 2a3e3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkdownEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function registerAssets()
*/
protected function getEditorOptions()
{
$this->editorOptions['element'] = new JsExpression('$("#' . $this->id . '")[0]');
$this->editorOptions['element'] = new JsExpression('document.getElementById("' . $this->options['id'] . '")');

return Json::encode($this->editorOptions);
}
Expand Down

0 comments on commit 2a3e3c8

Please sign in to comment.