update editorjs blocks
This commit is contained in:
parent
d324bd2850
commit
5ac4a85e77
|
@ -784,7 +784,6 @@ $links: (
|
||||||
|
|
||||||
.ejs-link {
|
.ejs-link {
|
||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
max-width: 95%;
|
|
||||||
border: 2px solid $color-very-light-grey;
|
border: 2px solid $color-very-light-grey;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ core:
|
||||||
blocks:
|
blocks:
|
||||||
link: 'editorjs/link.html.twig'
|
link: 'editorjs/link.html.twig'
|
||||||
code: 'editorjs/code.html.twig'
|
code: 'editorjs/code.html.twig'
|
||||||
|
paragraph: 'editorjs/paragraph.html.twig'
|
||||||
|
|
||||||
file_manager:
|
file_manager:
|
||||||
mimes:
|
mimes:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="ejs-link-content--title">{{- meta.title -}}</div>
|
<div class="ejs-link-content--title">{{- meta.title -}}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if meta.title %}
|
{% if meta.title %}
|
||||||
<div class="ejs-link-content--description">{{- meta.description -}}</div>
|
<div class="ejs-link-content--description">{{- meta.description|nl2br -}}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if link %}
|
{% if link %}
|
||||||
<div class="ejs-link-content--link">{{- link -}}</div>
|
<div class="ejs-link-content--link">{{- link -}}</div>
|
||||||
|
|
3
templates/editorjs/paragraph.html.twig
Normal file
3
templates/editorjs/paragraph.html.twig
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{%- block render -%}
|
||||||
|
<p>{{- text|raw -}}</p>
|
||||||
|
{%- endblock -%}
|
Loading…
Reference in a new issue