{# Need to add something to the outer wrapper for one widget type? #} {# Set the `wrapperTemplate` option to `wrapper`, supply a #} {# `wrapper.html` template in your widget module that extends #} {# `apostrophe-areas:widget.html`, and override the blocks below. #}
{# This wrapper exists for editor.js to inject contextual widget insertion controls into, since those are area level controls rather than widget level #}
{%- if data.widget._edit and data.options.edit != false -%} {%- include 'widgetControls.html' -%} {%- endif -%} {{ data.output() | safe }}