Skip to content

Commit be3110b

Browse files
committed
update
1 parent 35292c2 commit be3110b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Editor.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ public function render()
2525
$config = json_encode(array_merge([
2626
'zIndex' => 0,
2727
'uploadImgShowBase64' => true,
28-
], $config));
28+
], $config, $this->options));
29+
30+
$token = csrf_token();
2931

3032
$this->script = <<<EOT
3133
3234
var E = window.wangEditor
3335
var editor = new E('#{$this->id}');
3436
37+
editor.customConfig.uploadImgParams = {_token: '$token'}
38+
3539
Object.assign(editor.customConfig, {$config})
3640
3741
editor.customConfig.onchange = function (html) {

0 commit comments

Comments
 (0)