aldryn-newsblog icon indicating copy to clipboard operation
aldryn-newsblog copied to clipboard

Lead content rendered as HTML verbatim

Open FabriceSalvaire opened this issue 8 years ago • 6 comments

For some reason the lead content of edited articles is rendered as HTML verbatim.

A server restart solved the issue.

FabriceSalvaire avatar Oct 18 '16 11:10 FabriceSalvaire

I have the same issue ! capture d ecran 2016-10-19 a 17 20 31

yboussard avatar Oct 19 '16 15:10 yboussard

I also have the same issue. Uwsgi restart solves the issue.

kirimi avatar Nov 07 '16 10:11 kirimi

Issue not uwsgi related. I have the same if even i use runserver . After some time issue disappear. Issue appear after every new blog page added

jpVm5jYYRE1VIKL avatar Nov 18 '16 15:11 jpVm5jYYRE1VIKL

Same here. Tested on runserver. It happens every time I add new article. But after few minutes when I refresh the page, even without restarting the server, everything is back to normal...

Edit: In aldryn_newsblog/templates/aldryn_newsblog/includes/article.html I changed this line: {% render_model article "lead_in" %} to: {{ article.lead_in|safe }} and now it looks like it's working.

maartinez avatar Nov 25 '16 08:11 maartinez

I'm seeing the same issue. The solution from @maartinez works, but removes the "click to edit" feature from the lead-in.

johnwoltman avatar Dec 03 '16 06:12 johnwoltman

Same issue here

image

maybe the implementation of render_model is doing it wrong. Could be fixed with more parameters I think. A djangocms issue then.

sonic182 avatar Dec 10 '16 11:12 sonic182