Skip to content

Commit 8e2f239

Browse files
authored
Merge pull request #90 from maximehuran/feature/manage-empty-value
Manage empty value in input when it has no element
2 parents e0c2304 + ea438f9 commit 8e2f239

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ global.MonsieurBizRichEditorManager = class {
458458
}
459459

460460
write() {
461-
this.input.value = JSON.stringify(this.uiElements);
461+
this.input.value = (this.uiElements.length > 0) ? JSON.stringify(this.uiElements) : '';
462462
this.drawUiElements();
463463
}
464464

0 commit comments

Comments
 (0)