Skip to content

Commit

Permalink
Fix pag edit regression: missing caption wysiwyg
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Apr 25, 2018
1 parent 47da0fe commit c82142a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/asset/js/site-page-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@

$('#blocks .block').each(function () {
replaceIndex($(this), 'blockIndex', blockIndex++);
wysiwyg($(this));
});
$('#blocks').on('o:block-added', '.block', function () {
replaceIndex($(this), 'blockIndex', blockIndex++);
wysiwyg($(this));
});
wysiwyg($('body'));

$('#blocks').on('click', 'a.remove-value, a.restore-value', function (e) {
e.preventDefault();
Expand Down

0 comments on commit c82142a

Please sign in to comment.