Skip to content

Commit

Permalink
fix(pat tinymce): Do not remove current paragraph when inserting image.
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed May 3, 2023
1 parent 31e7221 commit 856b519
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pat/tinymce/js/links.js
Expand Up @@ -714,10 +714,6 @@ export default Base.extend({
};
}

if (self.imgElm) {
self.dom.remove(self.imgElm);
}

data.id = "__mcenew";
var html_inner = self.dom.createHTML("img", data);
var html_string;
Expand Down

0 comments on commit 856b519

Please sign in to comment.