mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	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>
This commit is contained in:
		| @@ -201,10 +201,8 @@ export function initRepoEditor() { | ||||
|   })(); | ||||
| } | ||||
|  | ||||
| export function renderPreviewPanelContent($previewPanel, data) { | ||||
|   $previewPanel.html(data); | ||||
| export function renderPreviewPanelContent(previewPanel: Element, content: string) { | ||||
|   previewPanel.innerHTML = content; | ||||
|   initMarkupContent(); | ||||
|  | ||||
|   const $refIssues = $previewPanel.find('p .ref-issue'); | ||||
|   attachRefIssueContextPopup($refIssues); | ||||
|   attachRefIssueContextPopup(previewPanel.querySelectorAll('p .ref-issue')); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user