diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-04 10:11:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 02:11:34 +0000 |
commit | c9e582c6b6cbc7beae66d24b05be6e1d338aa81b (patch) | |
tree | e2212df009376c6bde41296232e414b2388b8ae5 /web_src/js/features/repo-release.ts | |
parent | 2f43536c3eb6ba20e43521f5539df8372f225652 (diff) | |
download | gitea-c9e582c6b6cbc7beae66d24b05be6e1d338aa81b.tar.gz gitea-c9e582c6b6cbc7beae66d24b05be6e1d338aa81b.zip |
Refactor markdown editor and use it for milestone description editor (#32688)
Refactor markdown editor to clarify its "preview" behavior and remove
jQuery code.
Close #15045
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/features/repo-release.ts')
-rw-r--r-- | web_src/js/features/repo-release.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/web_src/js/features/repo-release.ts b/web_src/js/features/repo-release.ts index 7589c77136..c59ab1f323 100644 --- a/web_src/js/features/repo-release.ts +++ b/web_src/js/features/repo-release.ts @@ -1,5 +1,4 @@ import {hideElem, showElem} from '../utils/dom.ts'; -import {initComboMarkdownEditor} from './comp/ComboMarkdownEditor.ts'; export function initRepoRelease() { document.addEventListener('click', (e) => { @@ -16,7 +15,6 @@ export function initRepoReleaseNew() { if (!document.querySelector('.repository.new.release')) return; initTagNameEditor(); - initRepoReleaseEditor(); } function initTagNameEditor() { @@ -48,11 +46,3 @@ function initTagNameEditor() { hideTargetInput(e.target); }); } - -function initRepoReleaseEditor() { - const editor = document.querySelector<HTMLElement>('.repository.new.release .combo-markdown-editor'); - if (!editor) { - return; - } - initComboMarkdownEditor(editor); -} |