diff --git a/assets/css/app.scss b/assets/css/app.scss index 8d8ee81..280509a 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -784,7 +784,6 @@ $links: ( .ejs-link { margin: 10px auto; - max-width: 95%; border: 2px solid $color-very-light-grey; border-radius: 5px; diff --git a/config/packages/app.yaml b/config/packages/app.yaml index 77db520..8486bf4 100644 --- a/config/packages/app.yaml +++ b/config/packages/app.yaml @@ -72,6 +72,7 @@ core: blocks: link: 'editorjs/link.html.twig' code: 'editorjs/code.html.twig' + paragraph: 'editorjs/paragraph.html.twig' file_manager: mimes: diff --git a/templates/editorjs/link.html.twig b/templates/editorjs/link.html.twig index 86ba4cd..3537455 100644 --- a/templates/editorjs/link.html.twig +++ b/templates/editorjs/link.html.twig @@ -6,7 +6,7 @@ {% endif %} {% if meta.title %} - + {% endif %} {% if link %} diff --git a/templates/editorjs/paragraph.html.twig b/templates/editorjs/paragraph.html.twig new file mode 100644 index 0000000..89f8b77 --- /dev/null +++ b/templates/editorjs/paragraph.html.twig @@ -0,0 +1,3 @@ +{%- block render -%} +

{{- text|raw -}}

+{%- endblock -%}