File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 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 )) {
You can’t perform that action at this time.
0 commit comments