Created
December 7, 2010 11:53
-
-
Save ulope/731716 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docs/custom_plugins.rst b/docs/custom_plugins.rst | |
index 31ba3c5..d3ee68e 100644 | |
--- a/docs/custom_plugins.rst | |
+++ b/docs/custom_plugins.rst | |
@@ -254,7 +254,8 @@ In your yourapp.cms_plugin_processors.py:: | |
This plugin processor wraps each plugin's output in a colored box if it is in the "main" placeholder. | |
''' | |
if placeholder.slot != 'main' \ # Plugins not in the main placeholder should remain unchanged | |
- or instance._render_meta.text_enabled: # Plugins embedded in Text should remain unchanged in order not to break output | |
+ or (instance._render_meta.text_enabled # Plugins embedded in Text should remain unchanged in order not to break output | |
+ and instance.parent): | |
return rendered_content | |
else: | |
from django.template import Context, Template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment