commit 0ba9d8eda802c5238553b1b10695262e82291c56
parent 703e52fe9660f1b4cb54e2103d3e2086d4ddbfbb
Author: unitehenry <unitehenry@gmail.com>
Date: Wed, 30 Oct 2019 16:53:01 -0400
disable form submit on buttons
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -584,6 +584,8 @@ export default class StrivenEditor {
linkMenuFormInput.type = "text";
linkMenuFormInput.placeholder = "Insert a Link";
+ linkMenuButton.type = "button";
+ linkMenuCloseButton.type = "button";
linkMenuButtons.classList.add('se-popup-button-container');
@@ -672,6 +674,9 @@ export default class StrivenEditor {
imageMenuButtons.classList.add('se-popup-button-container');
+ imageMenuButton.type = "button";
+ imageMenuCloseButton.type = "button";
+
imageMenuButton.classList.add('se-popup-button', 'se-button-primary');
imageMenuButton.textContent = "Insert Image";