UX: ensure whitespace isn't removed when playing with quotes
This commit is contained in:
parent
ba0dd5889d
commit
e209faa6cf
|
@ -78,7 +78,10 @@ export default Ember.Component.extend({
|
|||
const $quoteButton = this.$();
|
||||
|
||||
// remove the marker
|
||||
markerElement.parentNode.removeChild(markerElement);
|
||||
const parent = markerElement.parentNode;
|
||||
parent.removeChild(markerElement);
|
||||
// merge back all text nodes so they don't get messed up
|
||||
parent.normalize();
|
||||
|
||||
// work around Safari that would sometimes lose the selection
|
||||
if (isSafari) {
|
||||
|
|
Loading…
Reference in New Issue