]> source.dussan.org Git - gitea.git/commit
Set "type=button" for editor's toolbar buttons (#26510) (#26518)
authorGiteabot <teabot@gitea.io>
Tue, 15 Aug 2023 12:10:50 +0000 (20:10 +0800)
committerGitHub <noreply@github.com>
Tue, 15 Aug 2023 12:10:50 +0000 (14:10 +0200)
commit31208fe9a138ae29a114a28155e73b3e9b259ce3
treea1a5d5023cf73fc16e3df0e92c973e94e5542879
parent4bdb8dd9cc028a071819afd8f79cf29b30ab4d30
Set "type=button" for editor's toolbar buttons (#26510) (#26518)

Backport #26510 by @wxiaoguang

The editor usually is in a form, so the buttons should have
"type=button", avoid conflicting with the form's submit.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
web_src/js/features/comp/ComboMarkdownEditor.js