You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js/features
wxiaoguang 5cc0801de9
Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876)
The first step of the plan

* #23290

Thanks to @silverwind for the first try in #15394 . Close #10729 and a
lot of related issues.

The EasyMDE is not removed, now it works as a fallback, users can switch
between these two editors.

Editor list:

* Issue / PR comment
* Issue / PR comment edit
* Issue / PR comment quote reply
* PR diff view, inline comment
* PR diff view, inline comment edit
* PR diff view, inline comment quote reply
* Release editor
* Wiki editor

Some editors have attached dropzone

Screenshots:

<details>


![image](https://user-images.githubusercontent.com/2114189/229363558-7e44dcd4-fb6d-48a0-92f8-bd12f57bb0a0.png)


![image](https://user-images.githubusercontent.com/2114189/229363566-781489c8-5306-4347-9714-d71af5d5b0b1.png)


![image](https://user-images.githubusercontent.com/2114189/229363771-1717bf5c-0f2a-4fc2-ba84-4f5b2a343a11.png)


![image](https://user-images.githubusercontent.com/2114189/229363793-ad362d0f-a045-47bd-8f9d-05a9a842bb39.png)

</details>

---------

Co-authored-by: silverwind <me@silverwind.io>
2 years ago
..
admin Convert `<div class="button">` to `<button class="button">` (#23337) 2 years ago
comp Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
captcha.js Add new captcha: cloudflare turnstile (#22369) 2 years ago
citation.js Fix switched citation format (#23250) 2 years ago
clipboard.js Use clippie module to copy to clipboard (#23801) 2 years ago
codeeditor.js Allow new file and edit file preview if it has editable extension (#23624) 2 years ago
colorpicker.js JS refactors (#22227) 2 years ago
common-global.js Fix dropdown direction behavior (#23806) 2 years ago
common-issue.js Convert issue list checkboxes to native (#23596) 2 years ago
common-organization.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
contextpopup.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
copycontent.js Use clippie module to copy to clipboard (#23801) 2 years ago
dropzone.js JS refactors (#22227) 2 years ago
emoji.js JS refactors (#22227) 2 years ago
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers (#20584) 3 years ago
file-fold.js JS refactors (#22227) 2 years ago
formatting.js JS refactors (#22227) 2 years ago
heatmap.js JS refactors (#22227) 2 years ago
imagediff.js Fix various ImageDiff/SVG bugs (#23312) 2 years ago
install.js Fix various bugs for "install" page (#23194) 2 years ago
notification.js Move helpers to be prefixed with `gt-` (#22879) 2 years ago
org-team.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
pull-view-file.js Replace unstyled meter with progress (#19968) 3 years ago
repo-branch.js
repo-code.js Use clippie module to copy to clipboard (#23801) 2 years ago
repo-code.test.js Ignore line anchor links with leading zeroes (#21728) 2 years ago
repo-commit.js Fix hidden commit status on multiple checks (#22889) 2 years ago
repo-common.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-diff-filetree.js JS refactors (#22227) 2 years ago
repo-diff.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
repo-editor.js Editor preview support for external renderers (#23333) 2 years ago
repo-findfile.js Refactor branch/tag selector to Vue SFC (#23421) 2 years ago
repo-findfile.test.js Refactor branch/tag selector to Vue SFC (#23421) 2 years ago
repo-graph.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-home.js Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form (#23626) 2 years ago
repo-issue-content.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-issue-pr-form.js JS refactors (#22227) 2 years ago
repo-issue.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
repo-legacy.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
repo-migrate.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-migration.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-projects.js Sync the class change of Edit Column Button to JS code (#23400) 2 years ago
repo-release.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
repo-settings.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 3 years ago
repo-template.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-unicode-escape.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-wiki.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
serviceworker.js JS refactors (#22227) 2 years ago
sshkey-helper.js
stopwatch.js Move helpers to be prefixed with `gt-` (#22879) 2 years ago
tablesort.js JS refactors (#22227) 2 years ago
tribute.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
user-auth-webauthn.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
user-auth.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
user-settings.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago