Skip to content
Extraits de code Groupes Projets
setup_tinymce-bf1768a15a0295d3422afc5a0b7a6d68198ae3decad69afba6eecbcea51fc01a.js 1,07 ko
Newer Older
echarp's avatar
echarp a validé
(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-0c390af53f43f7fd5dbf6e72b1c655b940aeb0daec81afe56cdb5798d058bec4.css',
      relative_urls: false,
      entity_encoding: 'raw',
      document_base_url: '/',
      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);