Skip to content

Commit

Permalink
Merge pull request #6857 from TryGhost/fix-editor-with-wrapped-images
Browse files Browse the repository at this point in the history
Fix broken editor when content contains wrapped images
  • Loading branch information
ErisDS committed May 18, 2016
2 parents e35e037 + d19dd52 commit b3448fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/app/components/gh-ed-preview.js
Expand Up @@ -92,7 +92,7 @@ export default Component.extend({
el.innerHTML = '';
el.classList.remove('image-uploader');

fragment.replaceChild(el, oldEl);
oldEl.parentNode.replaceChild(el, oldEl);
});

this.set('previewHTML', fragment);
Expand Down

0 comments on commit b3448fa

Please sign in to comment.