Skip to content

Commit c7db32d

Browse files
author
Bizley
committed
2.6.1
1 parent aae29b3 commit c7db32d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Quill.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* See the documentation for more details.
2828
*
2929
* @author Paweł Bizley Brzozowski
30-
* @version 2.6.0
30+
* @version 2.6.1
3131
* @license Apache 2.0
3232
* https://github.com/bizley/yii2-quill
3333
*
@@ -364,7 +364,6 @@ public function registerClientScript()
364364
$editor = 'q_' . \preg_replace('~[^0-9_\p{L}]~u', '_', $this->id);
365365

366366
$js = "var $editor=new Quill(\"#editor-{$this->id}\",$configs);";
367-
$js .= "document.getElementById(\"editor-{$this->id}\").onclick=function(e){document.querySelector(\"#editor-{$this->id} .ql-editor\").focus();};";
368367
$js .= "$editor.on('text-change',function(){document.getElementById(\"{$this->_fieldId}\").value=$editor.root.innerHTML;});";
369368

370369
if (!empty($this->js)) {

0 commit comments

Comments
 (0)