The changeset displayed on the versions page are now better line wrapped
2
app/assets/stylesheets/versions.sass
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
body.versions td.changes
|
||||||
|
white-space: pre-wrap
|
@ -40,8 +40,7 @@
|
|||||||
%td= t ".#{version.event}_html"
|
%td= t ".#{version.event}_html"
|
||||||
%td= User.find version.whodunnit if version.whodunnit
|
%td= User.find version.whodunnit if version.whodunnit
|
||||||
%td= object
|
%td= object
|
||||||
%td
|
%td.changes= changes
|
||||||
%pre= changes
|
|
||||||
%td= l version.created_at, format: :short
|
%td= l version.created_at, format: :short
|
||||||
%td
|
%td
|
||||||
- unless version.event == 'destroy'
|
- unless version.event == 'destroy'
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
(function() {
|
||||||
|
$(document).on('turbolinks:load', function() {
|
||||||
|
return tinyMCE.init({
|
||||||
|
schema: 'html5',
|
||||||
|
menubar: false,
|
||||||
|
language: 'fr_FR',
|
||||||
|
selector: 'textarea.description',
|
||||||
|
content_css: '/assets/application-e6e283210493f0778814ff94f81119b6707172ab190886917cadf4ba1f287f43.css',
|
||||||
|
entity_encoding: 'raw',
|
||||||
|
add_unload_trigger: true,
|
||||||
|
browser_spellcheck: true,
|
||||||
|
toolbar: [' bold italic strikethrough | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify | link image media insertdatetime charmap table | undo redo | searchreplace | code visualblocks preview fullscreen'],
|
||||||
|
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print, preview, table, fullscreen, searchreplace, media, insertdatetime, visualblocks, visualchars, wordcount, contextmenu, code'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('turbolinks:before-cache', function() {
|
||||||
|
return tinymce.remove();
|
||||||
|
});
|
||||||
|
|
||||||
|
}).call(this);
|
After Width: | Height: | Size: 354 B |
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 331 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 340 B |
After Width: | Height: | Size: 336 B |
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 323 B |
After Width: | Height: | Size: 344 B |
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 328 B |
After Width: | Height: | Size: 337 B |
After Width: | Height: | Size: 350 B |
After Width: | Height: | Size: 336 B |
After Width: | Height: | Size: 53 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 152 B |
After Width: | Height: | Size: 43 B |