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 35292c2 commit be3110bCopy full SHA for be3110b
src/Editor.php
@@ -25,13 +25,17 @@ public function render()
25
$config = json_encode(array_merge([
26
'zIndex' => 0,
27
'uploadImgShowBase64' => true,
28
- ], $config));
+ ], $config, $this->options));
29
+
30
+ $token = csrf_token();
31
32
$this->script = <<<EOT
33
34
var E = window.wangEditor
35
var editor = new E('#{$this->id}');
36
37
+editor.customConfig.uploadImgParams = {_token: '$token'}
38
39
Object.assign(editor.customConfig, {$config})
40
41
editor.customConfig.onchange = function (html) {
0 commit comments