Show the image button only if editing admin pages

That's the only place where we need to attach images so far.
This commit is contained in:
Javi Martín
2018-09-07 14:11:29 +02:00
parent 43e83889ff
commit 5faeefab2c
2 changed files with 7 additions and 2 deletions

View File

@@ -50,7 +50,8 @@
<div class="ckeditor margin-top">
<%= f.label :content %>
<%= f.cktext_area :content, label: false, cols: 80, rows: 10, ckeditor: { language: I18n.locale } %>
<%= f.cktext_area :content, label: false, cols: 80, rows: 10,
ckeditor: { language: I18n.locale, toolbar: "admin" } %>
</div>
<div class="small-12 medium-6 large-3">