Skip to content

Commit

Permalink
修复初始化显示时html尾标签丢失问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yisonli authored and jxlwqq committed Jun 20, 2019
1 parent 56b0f22 commit 3e9737d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ public function render()

if (!is_string($json)) {
$json = json_encode($json);
} else {
$json = json_encode(json_decode($json,true)); //兼容json里有类似</p>格式,首次初始化显示会丢失的问题
}
$this->value = $json;

$options = json_encode(config('admin.extensions.json-editor.config'));

Expand Down

0 comments on commit 3e9737d

Please sign in to comment.