johannschopplich / kirby-writer-marks

Custom marks for Kirby's writer field – footnote mark included
35 stars 6 forks source link

Custom marks disappear inside custom blocks #8

Open grommas opened 2 years ago

grommas commented 2 years ago

I don't know if it's the result of clumsy attempts or a misbehaviour. Anyway, I noticed that custom marks don't work if you use them in a custom block. Even Kirby's Sane class allowed tags are ignored and deleted after saving content which was edited directly inside the blogs preview. Everything seems to work fine in Kirby's pre-built blocks though. Is there anything I can do to better understand or solve the problem? Is this perhaps even a Kirby internal problem, or could it happen due to the order in which the plugins are loaded?

johannschopplich commented 1 year ago

Unfortunately, I have neither the use-case nor time to check what causes this behavior. Since the custom marks implementation overwrites Kirby's k-writer component, it should theoretically work the same in every instance. I have no idea what could cause this.

If you find a solution, feel free to share it. Thanks!

grommas commented 1 year ago

Tried a couple of thing without any luck, but I will share a solution in case I find one. Anyway, thanks for your answer! All the best from Bremen to Leipzig.