You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
900 B

$(document).ready ->
$('form.region_selector select').change ->
selector: 'textarea#event_description',
menubar : false,
schema: 'html5',
entity_encoding : 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
toolbar: [
' bold italic strikethrough
| bullist numlist outdent indent
| alignleft aligncenter alignright alignjustify
| link media insertdatetime charmap table
| undo redo
| searchreplace
| code visualblocks preview fullscreen'
plugins: 'lists, advlist, autolink, link, 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!