Skip to content

Commit

Permalink
Sync content before removing old instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertandy committed Oct 2, 2019
1 parent a37685c commit a582191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/admin/sortable.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $(document).ready ->
editors.each (i, e) ->
input = $(e).parent().find("textarea")
instance = CKEDITOR.instances[input.attr("id")]
# ckeditor doesn't tidy up after itself
instance.updateElement()
CKEDITOR.remove instance
CKEDITOR.replace input.attr("id")
$(e).remove()
Expand Down

0 comments on commit a582191

Please sign in to comment.