agenda-libre-ruby/public/assets/setup_tinymce-e6e39597a403d30aa4d04576d58207da97063c81a43750f3e41559f860a741a0.js
2020-01-17 20:47:40 +01:00

25 lines
1.0 KiB
JavaScript

(function() {
$(document).on('turbolinks:load', function() {
return tinyMCE.init({
width: '100%',
height: '40em',
menubar: false,
branding: false,
language: 'fr_FR',
selector: 'input.description',
content_css: '/assets/application-d166db475e5c4ea1dd596d7609be81f95c7dd54dfe51f8710ae8b48cf722f84e.css',
entity_encoding: 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
style_formats_autohide: true,
toolbar: [' cut copy paste | undo redo | link image media charmap table | code visualblocks searchreplace', ' removeformat bold italic strikethrough superscript subscript | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify alignnone'],
plugins: 'lists advlist autolink link image charmap paste print preview table fullscreen searchreplace media insertdatetime visualblocks wordcount code'
});
});
$(document).on('turbolinks:before-cache', function() {
return tinymce.remove();
});
}).call(this);