We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144da64 commit 6c5c2c8Copy full SHA for 6c5c2c8
src/Editor.php
@@ -25,12 +25,12 @@ public function render()
25
$token = csrf_token();
26
$config = json_encode((array)config('admin.extensions.simditor.config'));
27
$this->script = <<<EOT
28
- var config = {$config}
29
- config['textarea'] = $('#{$this->id}')
30
- config['upload']['params'] = {_token: '{$token}'}
31
-$(document).ready(function(){
32
- var editor = new Simditor(config);
33
- });
+ $(document).ready(function(){
+ var config = {$config}
+ config['textarea'] = $('#{$this->id}')
+ config['upload']['params'] = {_token: '{$token}'}
+ var editor = new Simditor(config);
+ });
34
EOT;
35
return parent::render();
36
}
0 commit comments