gitea/web_src/js/features
wxiaoguang 93eb914438
Improve markdown editor: width, height, preferred ()
Follow 


1. Fine tune the heights of the editors (like before)
    * Auto expand the editor (increase/decrease the height) when editing
2. Remember user's last used editor (textarea/easymde) in LocalStorage,
then next time the editor will be switched automatically
* No need to introduce extra config option, it satisfies all users,
including who prefer EasyMDE
3. Also fix the width problem of Review Panel

Screenshot:

<details>


![image](https://user-images.githubusercontent.com/2114189/229518585-2e05827e-8355-48f3-a20c-2c8b9e60ce74.png)


![image](https://user-images.githubusercontent.com/2114189/229518173-4caa6da7-6ad9-40e9-bf1a-ceddfcd4b37f.png)


![image](https://user-images.githubusercontent.com/2114189/229507886-148e9b84-9b58-46d1-ba3f-727e1396f476.png)


![image](https://user-images.githubusercontent.com/2114189/229518258-9f522294-1e64-4b06-91ab-ab43b0353aaa.png)


![image](https://user-images.githubusercontent.com/2114189/229507752-6d540ac7-7748-4bb6-bc09-28acab32d31b.png)


![image](https://user-images.githubusercontent.com/2114189/229510899-de322af5-57e8-4dc5-9a61-771a3b1bee79.png)


</details>

---------

Co-authored-by: silverwind <me@silverwind.io>
..
admin Convert `<div class="button">` to `<button class="button">` ()
comp Improve markdown editor: width, height, preferred ()
captcha.js Add new captcha: cloudflare turnstile ()
citation.js Fix switched citation format ()
clipboard.js Use clippie module to copy to clipboard ()
codeeditor.js Allow new file and edit file preview if it has editable extension ()
colorpicker.js JS refactors ()
common-global.js Fix dropdown direction behavior ()
common-organization.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
contextpopup.js Introduce GitHub markdown editor, keep EasyMDE as fallback ()
copycontent.js Use clippie module to copy to clipboard ()
dropzone.js JS refactors ()
emoji.js JS refactors ()
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers ()
file-fold.js Scroll collapsed file into view ()
formatting.js Introduce GiteaLocaleNumber custom element to handle number localization on pages. ()
heatmap.js JS refactors ()
imagediff.js Fix various ImageDiff/SVG bugs ()
install.js Fix various bugs for "install" page ()
notification.js Move helpers to be prefixed with `gt-` ()
org-team.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
pull-view-file.js Replace unstyled meter with progress ()
repo-branch.js Add apply-patch, basic revert and cherry-pick functionality ()
repo-code.js Use clippie module to copy to clipboard ()
repo-code.test.js Ignore line anchor links with leading zeroes ()
repo-commit.js Fix hidden commit status on multiple checks ()
repo-common.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-diff-filetree.js JS refactors ()
repo-diff.js Introduce GitHub markdown editor, keep EasyMDE as fallback ()
repo-editor.js Editor preview support for external renderers ()
repo-findfile.js Refactor branch/tag selector to Vue SFC ()
repo-findfile.test.js Refactor branch/tag selector to Vue SFC ()
repo-graph.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-home.js Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form ()
repo-issue-content.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-issue-list.js Refactor authors dropdown (send get request from frontend to avoid long wait time) ()
repo-issue-pr-form.js JS refactors ()
repo-issue.js Refactor authors dropdown (send get request from frontend to avoid long wait time) ()
repo-legacy.js Introduce GitHub markdown editor, keep EasyMDE as fallback ()
repo-migrate.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-migration.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-projects.js Sync the class change of Edit Column Button to JS code ()
repo-release.js Introduce GitHub markdown editor, keep EasyMDE as fallback ()
repo-settings.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown ()
repo-template.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-unicode-escape.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
repo-wiki.js Improve markdown editor: width, height, preferred ()
serviceworker.js JS refactors ()
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals ()
stopwatch.js Move helpers to be prefixed with `gt-` ()
tablesort.js JS refactors ()
tribute.js Introduce GitHub markdown editor, keep EasyMDE as fallback ()
user-auth-webauthn.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
user-auth.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()
user-settings.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ()