Skip to content

Commit

Permalink
Allow embeds in inside tables
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev committed Jul 8, 2019
1 parent ba2d29d commit 08059f5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const ZERO_WIDTH_SPACE = '​';
init: function(editor) {
editor.ezembed = {
canBeAdded: () => {
const path = editor.elementPath();

return !path || path.contains('table', true) === null;
return true;
},
};

Expand Down

0 comments on commit 08059f5

Please sign in to comment.