mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

First edit validation fix #150

Closed luzik closed 6 years ago

luzik commented 6 years ago

In Chrome, validation is done before CodeMirror rewrite its content to #id_raw. CodeMirror make it hidden, and Chrome prevent submitting because can't validate hidden empty textarea

mgaitan commented 6 years ago

Hi! thanks for the proposal. I have one question. This made possible to save an empty page? could we prevent that in a different way?

luzik commented 6 years ago

Don't know but I believe that empty file is created earlier in process, because i found empty files without possibility to write to them because of this bug

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 75.0% when pulling 6bbfeebad75277e3f26461de05f208bd12f43f42 on luzik:patch-1 into b7db696075ceebb5676be61f44e2d806cc472255 on mgaitan:master.