Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor markdown editor and use it for milestone description editor #32688

Merged
merged 10 commits into from
Dec 4, 2024

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Dec 2, 2024

Refactor markdown editor to clarify its "preview" behavior and remove jQuery code.

Close #15045

Manually tested related pages:

project (repo-level)

image

project (org-level)

image

PR review approve comment

image

PR review diff comment (new, edit)

image

image

issue description (new, edit)

image

image

issue comment (new, edit)

image

image

issue template editor

image

milestone

image

release

image

wiki

image


by the way, fix UI misalignment:

image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 2, 2024
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 2, 2024
@wxiaoguang wxiaoguang added this to the 1.23.0 milestone Dec 2, 2024
@github-actions github-actions bot added modifies/translation modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/frontend labels Dec 2, 2024
@wxiaoguang wxiaoguang force-pushed the fix-markdown-editor branch 2 times, most recently from 4bb968e to c251dc9 Compare December 2, 2024 13:39
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 2, 2024
Copy link
Member

@silverwind silverwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will edit.

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 3, 2024
@wxiaoguang
Copy link
Contributor Author

I will edit.

Do you have a estimated time? If no time in 1 or 2 days, we can merge it as-is and there are always chances to propose following PRs.

@silverwind
Copy link
Member

Done now. This one-pair-per line style is much more readable and I really wonder why you would consider not honoring it.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged labels Dec 4, 2024
@wxiaoguang
Copy link
Contributor Author

Done now. This one-pair-per line style is much more readable and I really wonder why you would consider not honoring it.

It is less readable to me.

@wxiaoguang wxiaoguang enabled auto-merge (squash) December 4, 2024 01:14
@wxiaoguang wxiaoguang merged commit c9e582c into go-gitea:main Dec 4, 2024
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-markdown-editor branch December 4, 2024 02:20
zjjhot added a commit to zjjhot/gitea that referenced this pull request Dec 4, 2024
* giteaofficial/main:
  Fix delete branch perm checking (go-gitea#32654)
  Refactor markdown editor and use it for milestone description editor (go-gitea#32688)
  Fix issue title rendering and refactor legacy function names (go-gitea#32703)
  Fix oauth2 login methods (go-gitea#32698)
  Fix word overflow in file search page (go-gitea#32695)
  Add Swift login endpoint (go-gitea#32693)
  Quick fix for license file name (go-gitea#32696)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/translation size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add WYSIWYG editor on milestone form
4 participants