getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 222 forks source link

Image title should not be url-encoded #2379

Open u07 opened 8 months ago

u07 commented 8 months ago

Hi! I believe, this issue must be here.

The problem is, when you edit a page and want to add an image from your HDD with unicode name, you get this .md code:

![%D0%A2%D0%B5%D1%81%D1%82](%D0%A2%D0%B5%D1%81%D1%82.jpg "%D0%A2%D0%B5%D1%81%D1%82")

image

https://user-images.githubusercontent.com/20968145/205467330-4d99019f-d663-4d51-b454-76a509e79265.png

That's wrong. The 1'st and the 3'rd params are actually img's Alt and Title (human-readable) and they should not be url-encoded. Like this:

![Тест](%D0%A2%D0%B5%D1%81%D1%82.jpg "Тест")