Commit 1c1a6c388c8f2e8d82f421f3be7dcdf7b286f6f1

Authored by Rodrigo Souto
1 parent ac343688

[media-panel-improvements] Insert file media on text by click

app/views/cms/_drag_and_drop_note.html.erb
1 1 <p>
2 2 <em>
3 3 <%= _('Drag images to add them to the text.') %>
4   - <%= _('Drag file names to the text to add links.') %>
  4 + <%= _('Click on file names to add links to the text.') %>
5 5 </em>
6 6 </p>
... ...
app/views/cms/media_panel/_generic.html.erb
1 1 <div class="item file <%= icon_for_article(@file) %>" data-item="div">
2 2 <div>
3   - <a href="<%= url_for(@file.url) %>"><%= @file.title %></a>
  3 + <a class="add-to-text" href="<%= url_for(@file.url) %>"><%= @file.title %></a>
4 4 </div>
5 5 </div>
... ...