nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
406 stars 191 forks source link

No plugins available to add to blog post page in frontend editing form using USE_PLACEHOLDER = True #586

Closed sq9mev closed 4 years ago

sq9mev commented 4 years ago

Description

No plugins available to add to blog post page in frontend editing form using USE_PLACEHOLDER = True djangocms_blog-no-plugins-available

 Steps to reproduce

Versions

Expected behaviour

I'd expect at least some plugins are available to add.

Actual behaviour

No plugins available to add.

Additional information

sq9mev commented 4 years ago

Well, it's not djangocms_blog fault… in my templates i use custom tag which replaces spaces with non breaking spaces after single letters (in polish language we do not leave a single letter at the end of the line).

Seems like "sierotki" custom tag should be used in more specific context, not covering whole content block in my project's base.html.

Closing as it's not a bug.

yakky commented 4 years ago

@sq9mev thanks for reporting the root cause of the issue

sq9mev commented 4 years ago

Just for posterity: there were two problems with "sierotki" templatetag (https://room-303.com/blog/2009/08/12/python-utop-sierotki-w-zupie/):

  1. lxml parser wraps output with html > body
  2. script tags were processed as well causing strange problems

Here's the solution: https://gist.github.com/sq9mev/dbd9b2cdcb59c0828045eea46a05389f