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

Commit 3396538

Browse files
committed
Fixes #102 But for embeds
The same problem that was fixed in #102 but for embeds
1 parent fa7c554 commit 3396538

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)