Milkdown / milkdown

🍼 Plugin driven WYSIWYG markdown editor framework.
https://milkdown.dev
MIT License
8.88k stars 393 forks source link

[Bug] Crepe toolbar buttons type are submit as the default html spec #1521

Open ljcastroLemons opened 2 weeks ago

ljcastroLemons commented 2 weeks ago

Initial checklist

Affected packages and versions

@milkdown/crepe": "^7.5.7"

Link to runnable example

No response

Steps to reproduce

iam working in a project that use strapi and iam replacing the WYSIWYG Editor following this link strapi/wysiwyg. We choose milkdown/crepe editor for this work and the main issue is that when we click into the toolbar bold button or the other ones the form is saved automatically.

Expected behavior

Buttons in the toolbar or any others button should be type="button"

Actual behavior

Buttons in the toolbar don specify type

Runtime

Brave, Other (please specify in steps to reproduce)

OS

Linux

Build and bundle tools

Vite

sindras commented 6 hours ago

Does this fixed your issue? #1530