Skip to content

Commit c5897c9

Browse files
committed
Always save TinyMCE content when creating
1 parent 1177e84 commit c5897c9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/js/model.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,9 @@ function modelFilterListView(slug) {
303303

304304
function modelCreate(slug, cloneFromId) {
305305
loading();
306-
if (cloneFromId) {
307-
$('.tinymce').each(function() {
308-
tinyMCE.get(this.id).save();
309-
});
310-
}
306+
$('.tinymce').each(function() {
307+
tinyMCE.get(this.id).save();
308+
});
311309
var data = $('#model_form').serialize();
312310
if (cloneFromId) {
313311
data += '&__cloneFromId=' + cloneFromId;

0 commit comments

Comments
 (0)