agenda-libre-ruby/public/assets/setup_tinymce-624899c2b70fae7d7551be90c104cde8224f9605d74eb1dc49a172f5667cce08.js
2020-02-04 18:01:51 +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-9208c94b0440026e95b0226ee1d6b98cca5c07fc8fec6370ec6682a7829f1f54.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);