Skip to content

Commit

Permalink
fix #226
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Jun 17, 2020
1 parent 6270367 commit f581179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Form/Field/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ protected function buildSaveContentScript()
return <<<JS
function (editor) {
editor.on('Change', function(e) {
$(replaceNestedFormIndex('#{$this->id}')).val(e.level.content);
console.log(123);
$(replaceNestedFormIndex('#{$this->id}')).val(String(e.level.content).replace('<p><br data-mce-bogus="1"></p>', '').replace('<p><br></p>', ''));
});
}
JS;
Expand Down

0 comments on commit f581179

Please sign in to comment.