--- a/src/pyams_default_theme/component/paragraph/__init__.py Wed Nov 28 17:53:42 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/__init__.py Wed Nov 28 18:09:35 2018 +0100
@@ -12,19 +12,14 @@
__docformat__ = 'restructuredtext'
+from zope.interface import implementer
-# import standard library
-
-# import interfaces
from pyams_content.component.paragraph.interfaces import IBaseParagraph
from pyams_content.features.preview.interfaces import IPreviewView
from pyams_default_theme.layer import IPyAMSDefaultLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
-
-# import packages
from pyams_default_theme.page import BasePreviewPage
from pyams_pagelet.pagelet import pagelet_config
-from zope.interface import implementer
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
@pagelet_config(name='preview.html', context=IBaseParagraph, layer=IPyAMSDefaultLayer,
@@ -46,6 +41,6 @@
def render(self):
if self.renderer is not None:
- return self.renderer.render()
+ return '<div class="edito">{}</div>'.format(self.renderer.render())
else:
return ''