agenda-libre-ruby/app/assets/javascripts/tinymce.coffee.erb
echarp 6924f7ec3c Changes to the main display: the title is flushed left.
Plus the map footer item is moved to be just below the main calendar view
2017-05-20 17:23:57 +02:00

32 lines
1.0 KiB
Plaintext

$(document).on 'turbolinks:load', ->
# Setup the graphical editor for event's description
tinyMCE.init
schema: 'html5',
branding: false,
language: 'fr_FR',
selector: 'textarea.description',
content_css: '<%= asset_path 'application.css' %>',
entity_encoding : 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
toolbar: [
' cut copy paste
| undo redo
| searchreplace
| link image media charmap table
| code visualblocks preview fullscreen',
' removeformat
| bold italic strikethrough
| superscript subscript
| bullist numlist
| alignleft aligncenter alignright alignjustify alignnone
| outdent indent'
],
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print,
preview, table, fullscreen, searchreplace, media, insertdatetime,
visualblocks, wordcount, contextmenu, code'
$(document).on 'turbolinks:before-cache', ->
# Delete existing tinymce editors, very important in the turbolinks context!
tinymce.remove()