1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 10:04:21 +02:00

Editor.js integration #122 #117

This commit is contained in:
Awilum
2019-06-05 20:52:36 +03:00
parent 06b0d74d52
commit 40657766e4

View File

@@ -454,7 +454,7 @@ class EntriesController extends Controller
break;
// A WYSIWYG HTML field.
case 'html':
if ($form_value === '') {
if ($form_value === '' || count($form_value['blocks']) == 0) {
$form_value = JsonParser::decode('{
"time": 1559727958862,
"blocks": [{