nineskeletor/templates/Pagewidget/vieweditor.html.twig

29 lines
672 B
Twig

{% set widgetname="editor" %}
{% extends 'Pagewidget/widget.twig' %}
{% block widgetaction %}
{% if canadd %}
<i class="fa fa-pencil fa-fw" title="Modifier votre texte" onClick="ckeditor({{ entity.id }})"></i>
{% endif %}
{% endblock %}
{% block widgetbody %}
{% if html is empty and canadd %}
<div class="p-5 text-center">
<i title="Modifier votre texte" class="fa fa-pencil fa-5x" onClick="ckeditor({{ entity.id }})" style="cursor:pointer"></i><br>
Modifier votre texte
</div>
{% else %}
<div class="ckeditor-content">
{{ html | raw }}
</div>
{% endif %}
{% endblock %}