Fossil SCM

Always show the "Apply These Changes" button in the Wysiwyg editor.

drh 2019-02-20 21:50 trunk
Commit 5efd69e2ca688a5555ddf6bae189f2548b872316e80b1157cf90a6825375f9c7
1 file changed +1 -1
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -761,11 +761,11 @@
761761
@ <input type="submit" name="edit-markup" value="Markup Editor"
762762
@ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' />
763763
}
764764
login_insert_csrf_secret();
765765
if( havePreview ){
766
- if( zBody[0] ){
766
+ if( isWysiwyg || zBody[0] ){
767767
@ <input type="submit" name="submit" value="Apply These Changes" />
768768
}else{
769769
@ <input type="submit" name="submit" value="Delete This Wiki Page" />
770770
}
771771
}
772772
--- src/wiki.c
+++ src/wiki.c
@@ -761,11 +761,11 @@
761 @ <input type="submit" name="edit-markup" value="Markup Editor"
762 @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' />
763 }
764 login_insert_csrf_secret();
765 if( havePreview ){
766 if( zBody[0] ){
767 @ <input type="submit" name="submit" value="Apply These Changes" />
768 }else{
769 @ <input type="submit" name="submit" value="Delete This Wiki Page" />
770 }
771 }
772
--- src/wiki.c
+++ src/wiki.c
@@ -761,11 +761,11 @@
761 @ <input type="submit" name="edit-markup" value="Markup Editor"
762 @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' />
763 }
764 login_insert_csrf_secret();
765 if( havePreview ){
766 if( isWysiwyg || zBody[0] ){
767 @ <input type="submit" name="submit" value="Apply These Changes" />
768 }else{
769 @ <input type="submit" name="submit" value="Delete This Wiki Page" />
770 }
771 }
772

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button