A platform for community discussion. Free, open, simple.
UX: Trim selected text while copying to the link building modal
Vinoth Kannan4a70248311db
diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6index 109254c2d97..c70f0b3bc96 100644--- a/app/assets/javascripts/discourse/components/d-editor.js.es6+++ b/app/assets/javascripts/discourse/components/d-editor.js.es6@@ -737,7 +737,7 @@ export default Ember.Component.extend({this._lastSel = this._getSelected();if (this._lastSel) {- this.set("linkText", this._lastSel.value);+ this.set("linkText", this._lastSel.value.trim());}this.set('insertLinkHidden', false);