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/routers/web/repo
wxiaoguang 0a9fcf63a4
Clean legacy SimpleMDE code (#17926)
Since we are using EasyMDE now, we do not need to keep the SimpleMDE code anymore.

This PR removes all legacy SimpleMDE code, and makes some related changes:
* `createCommentEasyMDE` can accept native DOM element, and it doesn't need `jQuery.data` to store EasyMDE editor object (as discussed about the frontend guideline).
* introduce `getAttachedEasyMDE` to get the attached EasyMDE editor object, it's easier to find all the usage of EasyMDE.
* rename variable names from `$simplemde` to `easyMDE`, the `$` was incorrect because it is a EasyMDE editor, not a jQuery object.

With this PR, it will be easier to do more refactoring or replacing EasyMDE with other editors.
3 years ago
..
activity.go
attachment.go Move attachment into models/repo/ (#17650) 3 years ago
blame.go Move repository model into models/repo (#17933) 3 years ago
branch.go Move repository model into models/repo (#17933) 3 years ago
commit.go Clean legacy SimpleMDE code (#17926) 3 years ago
compare.go Clean legacy SimpleMDE code (#17926) 3 years ago
download.go Move repository model into models/repo (#17933) 3 years ago
editor.go Clean legacy SimpleMDE code (#17926) 3 years ago
editor_test.go
http.go Move repository model into models/repo (#17933) 3 years ago
http_test.go
issue.go Clean legacy SimpleMDE code (#17926) 3 years ago
issue_content_history.go
issue_dependency.go
issue_label.go Use a standalone struct name for Organization (#17632) 3 years ago
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go Move repository model into models/repo (#17933) 3 years ago
main_test.go
middlewares.go Move user related model into models/user (#17781) 3 years ago
migrate.go Move user related model into models/user (#17781) 3 years ago
milestone.go
projects.go Support sorting for project board issuses (#17152) 3 years ago
projects_test.go
pull.go Clean legacy SimpleMDE code (#17926) 3 years ago
pull_review.go
release.go Clean legacy SimpleMDE code (#17926) 3 years ago
release_test.go
repo.go Move repository model into models/repo (#17933) 3 years ago
search.go
setting.go Move repository model into models/repo (#17933) 3 years ago
setting_protected_branch.go Move repository model into models/repo (#17933) 3 years ago
settings_test.go Move repository model into models/repo (#17933) 3 years ago
tag.go Move repository model into models/repo (#17933) 3 years ago
topic.go
view.go Move repository model into models/repo (#17933) 3 years ago
webhook.go Move accessmode into models/perm (#17828) 3 years ago
wiki.go Clean legacy SimpleMDE code (#17926) 3 years ago
wiki_test.go Move repository model into models/repo (#17933) 3 years ago