They are first displayed, then converted into something read-only.
Topic on 2017 wikitext editor/Feedback
@Wakeup12, please see How_to_report_a_bug/tr to see how to provide more information. I can't reproduce this issue, and I have tried to both edit an article and the File: page for the book cover that it included, edited by you at tr.wikipedia.