Skip to content
Snippets Groups Projects
Commit 389f1d52 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

code embed

parent 69d60835
No related branches found
No related tags found
No related merge requests found
class Communication::Block::Component::Code < Communication::Block::Component::Base
def data=(value)
@data = Osuny::Sanitizer.sanitize value, 'text'
end
end
end
\ No newline at end of file
<div class="row">
<div class="col-md-6">
<p class="text-danger lead"><%= t '.warning' %></p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<%= block_component_edit :code %>
......
......@@ -218,6 +218,7 @@ en:
iframe_title:
label: Iframe title (mandatory for accessibility)
placeholder: Enter the title
warning: Beware, the code below is used as is, without any security filtering. Be extremely careful and never integrate possibly unreliable code.
files:
description: A list of downloadable files, mentioning their file size.
edit:
......
......@@ -218,6 +218,7 @@ fr:
iframe_title:
label: Titre de l'iframe (nécessaire pour l'accessibilité)
placeholder: Entrer le titre
warning: Attention, le code ci-dessous est intégré tel quel, sans filtrage de sécurité. N'intégrez jamais de code externe dont la fiabilité n'est pas certaine.
files:
description: Une liste de fichiers téléchargeables, présentés avec leur poids.
edit:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment