Correction sur le chemin css pour éditeur tinymce

This commit is contained in:
echarp 2014-09-26 22:30:54 +02:00
parent 23d7343de9
commit 1795ab7e4d
3 changed files with 29 additions and 29 deletions

View File

@ -1,27 +1,4 @@
$(document).ready ->
# Setup the graphical editor for event's description
tinyMCE.init
schema: 'html5',
menubar: false,
language: 'fr_FR',
selector: 'textarea#event_description',
content_css: '/assets/application.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'
# Manage event tags edition
$('#event_tags').each ->
elt = $(this)
@ -38,7 +15,3 @@ $(document).ready ->
$('#event_end_time').change ->
if $('#event_start_time').val() >= $('#event_end_time').val()
$('#event_start_time').val($('#event_end_time').val())
$(document).on 'page:receive', ->
# Delete existing tinymce editors, very important in the turbolinks context!
tinymce.remove()

View File

@ -0,0 +1,27 @@
$(document).ready ->
# Setup the graphical editor for event's description
tinyMCE.init
schema: 'html5',
menubar: false,
language: 'fr_FR',
selector: 'textarea#event_description',
content_css: '<%= asset_path 'application.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 'page:receive', ->
# Delete existing tinymce editors, very important in the turbolinks context!
tinymce.remove()

View File

@ -5,7 +5,7 @@
- if @events_future.any?
%p=raw t '.future', count: @events_future.count
%ul
- @events_future.find_each do |event|
- @events_future.order('start_time asc').each do |event|
%li
%div
= link_to event do
@ -16,7 +16,7 @@
- if @events_past.any?
%p=raw t '.past', count: @events_past.count
%ul
- @events_past.find_each do |event|
- @events_past.order('start_time desc').each do |event|
%li
%div
= link_to event do