Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 47a22e5

Browse files
committed
Merge pull request #105 from merqurio/master
Fixes #102 but for embeds
2 parents fa7c554 + 3396538 commit 47a22e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/medium-editor-insert-embeds.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
preparePreviousEmbeds: function () {
6666
this.$el.find('.mediumInsert-embeds').each(function() {
6767
var $parent = $(this).parent();
68-
$parent.html('<div class="mediumInsert-placeholder" draggable="true">' + $parent.html() + '</div>');
68+
if (!$parent.hasClass('mediumInsert-placeholder')) {
69+
$parent.html('<div class="mediumInsert-placeholder" draggable="true">' + $parent.html() + '</div>');
70+
}
6971
});
7072
},
7173

0 commit comments

Comments
 (0)