hubgit / react-prosemirror

A React component for ProseMirror
https://ow1qi.csb.app/
MIT License
248 stars 51 forks source link

Clicking on menu button submits the form. #5

Closed PjpG closed 6 years ago

PjpG commented 6 years ago

When the editor is put withing HTML5 form tag clicking on a button in editor's menu submits the form. This is because the type attribute is missing here and according to the HTML5 button specification:

The missing value default is the Submit Button state.

All is needed to fix is to add the type attribute.