4511287676
Support pasting URLs over selection text in the textarea editor. Does not work in EasyMDE and I don't intend to support it. Image paste works as usual in both Textarea and EasyMDE. The new `replaceTextareaSelection` function changes textarea content via [`insertText`](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#using_inserttext) command, which preserves history, e.g. `CTRL-Z` works and is also demostrated below. We should later refactor the image paste code to use the same function because it currently destroys history. Overriding the formatting via `Shift` key is supported as well, e.g. `Ctrl+Shift+V` will insert the URL as-is, like on GitHub. ![urlpaste](https://github.com/go-gitea/gitea/assets/115237/522b1023-6797-401c-9e4a-498570adfc88) (cherry picked from commit a3cfe6f39ba33cea305de592a006727857014c53) |
||
---|---|---|
.. | ||
admin | ||
comp | ||
captcha.js | ||
citation.js | ||
clipboard.js | ||
code-frequency.js | ||
codeeditor.js | ||
colorpicker.js | ||
common-global.js | ||
common-issue-list.js | ||
common-issue-list.test.js | ||
common-organization.js | ||
contextpopup.js | ||
contributors.js | ||
copycontent.js | ||
dropzone.js | ||
emoji.js | ||
eventsource.sharedworker.js | ||
file-fold.js | ||
heatmap.js | ||
imagediff.js | ||
install.js | ||
notification.js | ||
org-team.js | ||
pull-view-file.js | ||
recent-commits.js | ||
repo-branch.js | ||
repo-code.js | ||
repo-code.test.js | ||
repo-commit.js | ||
repo-common.js | ||
repo-diff-commit.js | ||
repo-diff-commitselect.js | ||
repo-diff-filetree.js | ||
repo-diff.js | ||
repo-editor.js | ||
repo-findfile.js | ||
repo-findfile.test.js | ||
repo-graph.js | ||
repo-home.js | ||
repo-issue-content.js | ||
repo-issue-list.js | ||
repo-issue-pr-form.js | ||
repo-issue-pr-status.js | ||
repo-issue.js | ||
repo-legacy.js | ||
repo-migrate.js | ||
repo-migration.js | ||
repo-projects.js | ||
repo-release.js | ||
repo-search.js | ||
repo-settings.js | ||
repo-template.js | ||
repo-unicode-escape.js | ||
repo-wiki.js | ||
sshkey-helper.js | ||
stopwatch.js | ||
tablesort.js | ||
tribute.js | ||
user-auth-webauthn.js | ||
user-auth.js | ||
user-settings.js |