mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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.$();
|
const $quoteButton = this.$();
|
||||||
|
|
||||||
// remove the marker
|
// 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
|
// work around Safari that would sometimes lose the selection
|
||||||
if (isSafari) {
|
if (isSafari) {
|
||||||
|
Loading…
Reference in New Issue
Block a user