Skip to content

Commit 6ff7934

Browse files
committed
Stop the toggle editor button from leaving the page with unsaved changes
Fixes #162 and #165
1 parent dc7224f commit 6ff7934

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

action/editor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ protected function buildOldToggleButton()
130130
protected function buildToggleButton()
131131
{
132132
$button = new ButtonElement('prosemirror', $this->getLang('switch_editors'));
133+
$button->attr('type', 'button');
133134
$button->addClass('button plugin_prosemirror_useWYSIWYG');
134135
if ($this->isForceWYSIWYG()) {
135136
$button->attr('style', 'display: none;');

0 commit comments

Comments
 (0)