Skip to content

Commit 82d44d8

Browse files
committed
Slight refactor for OCv2 compatibility
1 parent 1d2cc25 commit 82d44d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/froala.snippets.plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
if (options) {
4747
// Get editor element. OC2's richeditor has 2 nested data-control=richeditor, we want the outer one
48-
var $editor = this.$el.parents('[data-control="richeditor"]').last();
48+
var $editor = this.$el.parents('[data-control="richeditor"]:not([data-richeditor-vue])');
4949

5050
var $snippetNode = $('<figure contenteditable="false" data-inspector-css-class="hero">&nbsp;</figure>');
5151

0 commit comments

Comments
 (0)