agenda-libre-ruby/public/assets/setup_tinymce-2ee45c3c0978fadc1ccd3c7f2cc8265cb5390086545987a36dab7a924281c153.js

25 lines
1.0 KiB
JavaScript
Raw Normal View History

(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-fffac4f8dc2466271b1e210e8c876b665a819c7d6b3b3ef39f9efd570298dc2e.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);