GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Clear transcription text in editor after submitting #279

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

This is likely caused by #277.

When starting a new transcription, the editor will contain the text of the last transcription, instead of displaying the placeholder.

itsthejoker commented 2 years ago

I really don't think it's because of that but I don't have any better ideas. All I did was shorten that logic without changing anything material. 🤔

TimJentzsch commented 2 years ago

Maybe this will fix it?

{% if transcription %}
    simplemde.value(`{{ transcription|safe }}`)
{% else %}
   simplemde.value("")
{% endif %}

My guess would be that the value is still set from the last time and never gets reset

itsthejoker commented 2 years ago

ohhhhhh yeah that might do it

TimJentzsch commented 2 years ago

I'll try implementing that

TimJentzsch commented 2 years ago

Closed by #282.