This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
David Taylor 75d9c16156
DEV: Remove jquery from textarea-manipulation, improve undo handling (#17050)
This commit removes many uses of `this._$textarea`, and also switches us to use `document.execCommand("insertText")` for the majority of manipulations. This means that the browser undo history will be preserved when doing things like pasting rich html, using bold/italic shortcuts, etc.

These manipulations are already extensively tested. This commit extends a few of the tests to verify the undo behavior.

There are still a few cases (e.g. replacing upload placeholders with true URLs) where we don't necessarily want to bring the composer into focus. In those cases, the old history-breaking behavior remains for now.
2022-06-10 10:42:50 +10:00
..
app DEV: Remove jquery from textarea-manipulation, improve undo handling (#17050) 2022-06-10 10:42:50 +10:00
config FIX: Add safari 12 to ember-cli build targets in production (#16745) 2022-05-13 10:08:59 +01:00
lib DEV: Add support for GH Codespaces to ember proxy (#16581) 2022-04-28 14:46:59 +02:00
public/assets/scripts DEV: Replace deprecated String.prototype.substr() (#16233) 2022-04-01 17:35:17 +02:00
tests DEV: Remove jquery from textarea-manipulation, improve undo handling (#17050) 2022-06-10 10:42:50 +10:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Fix typos and outdated comments (#16614) 2022-05-04 14:12:18 +08:00
package.json FIX: uses tippy for popover (#15409) 2022-05-02 17:10:26 +02:00
testem.js DEV: Ensure ember-cli rake theme:qunit works with CSP enabled (#16541) 2022-04-22 16:59:45 +01:00