update editorjs blocks

This commit is contained in:
Simon Vieille 2022-03-26 19:07:08 +01:00
parent d324bd2850
commit 5ac4a85e77
4 changed files with 5 additions and 2 deletions

View File

@ -784,7 +784,6 @@ $links: (
.ejs-link {
margin: 10px auto;
max-width: 95%;
border: 2px solid $color-very-light-grey;
border-radius: 5px;

View File

@ -72,6 +72,7 @@ core:
blocks:
link: 'editorjs/link.html.twig'
code: 'editorjs/code.html.twig'
paragraph: 'editorjs/paragraph.html.twig'
file_manager:
mimes:

View File

@ -6,7 +6,7 @@
<div class="ejs-link-content--title">{{- meta.title -}}</div>
{% endif %}
{% if meta.title %}
<div class="ejs-link-content--description">{{- meta.description -}}</div>
<div class="ejs-link-content--description">{{- meta.description|nl2br -}}</div>
{% endif %}
{% if link %}
<div class="ejs-link-content--link">{{- link -}}</div>

View File

@ -0,0 +1,3 @@
{%- block render -%}
<p>{{- text|raw -}}</p>
{%- endblock -%}