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

Commit 530b633

Browse files
Apply the same fix to Embeds plugin
1 parent 7129397 commit 530b633

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/js/embeds.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@
511511
return;
512512
}
513513

514-
$('body').append(this.templates['src/js/templates/embeds-toolbar.hbs']({
514+
var mediumEditor = this.core.getEditor();
515+
var toolbarContainer = mediumEditor.options.elementsContainer || 'body';
516+
517+
$(toolbarContainer).append(this.templates['src/js/templates/embeds-toolbar.hbs']({
515518
styles: this.options.styles,
516519
actions: this.options.actions
517520
}).trim());

0 commit comments

Comments
 (0)