mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
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…
x
Reference in New Issue
Block a user