Skip to content

Commit

Permalink
Slight refactor for OCv2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Fl0Cri committed Jan 10, 2022
1 parent 1d2cc25 commit 82d44d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/froala.snippets.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

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

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

Expand Down

0 comments on commit 82d44d8

Please sign in to comment.