-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use Markdowneditor in more places #27772
base: main
Are you sure you want to change the base?
Changes from all commits
861521a
8c91542
96b51f9
8d46cab
df33aab
c9c7d3e
c7ad7c5
5f754d4
abf3141
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
"code.gitea.io/gitea/routers/web/feed" | ||
"code.gitea.io/gitea/routers/web/healthcheck" | ||
"code.gitea.io/gitea/routers/web/misc" | ||
"code.gitea.io/gitea/routers/web/org" | ||
Check failure on line 35 in routers/web/web.go GitHub Actions / lint-backend
Check failure on line 35 in routers/web/web.go GitHub Actions / lint-go-gogit
|
||
org_setting "code.gitea.io/gitea/routers/web/org/setting" | ||
"code.gitea.io/gitea/routers/web/repo" | ||
"code.gitea.io/gitea/routers/web/repo/actions" | ||
|
@@ -974,6 +974,8 @@ | |
// end "/repo": create, migrate, search | ||
|
||
m.Group("/{username}/-", func() { | ||
m.Post("/markup", web.Bind(structs.MarkupOption{}), misc.Markup) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be placed under |
||
|
||
if setting.Packages.Enabled { | ||
m.Group("/packages", func() { | ||
m.Get("", user.ListPackages) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {initComboMarkdownEditor} from './comp/ComboMarkdownEditor.js'; | ||
|
||
export function initComboMarkdownEditorGlobal() { | ||
JakobDev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
const markdownEditor = document.getElementsByClassName('combo-markdown-editor-init'); | ||
|
||
if (markdownEditor.length > 0) { | ||
initComboMarkdownEditor(markdownEditor[0]); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there are more than one editors, only the first one gets initialized. |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and other places: the mode shouldn't be "comment" because the description is rendered in original markdown format