<commit_before>$(document).on('turbolinks:load', wysihtml5_active);

function wysihtml5_active (){
  $('.wysihtml5').each(function(i, elem) {
    $(elem).wysihtml5({ toolbar:{ "fa": true, "link": false, "color": false }, "locale": "fr-FR" });
  });
}<commit_msg>[Fix #1729] Do not allow <code> tags in template editors<commit_after>$(document).on('turbolinks:load', wysihtml5_active);

function wysihtml5_active (){
  $('.wysihtml5').each(function(i, elem) {
    $(elem).wysihtml5({
      toolbar: {
        "fa": true,
        "link": false,
        "color": false
      },
      parserRules: {
        tags: {
          p: {},
          h1: {},
          h2: {},
          h3: {},
          h4: {},
          h5: {},
          h6: {},
          b: {},
          i: {},
          u: {},
          small: {},
          blockquote: {},
          ul: {},
          ol: {},
          li: {},
          img: {},
          code: {
            unwrap: 1
          }
        }
      },
      "locale": "fr-FR"
    });
  });
}
{'fraction_non_alphanumeric': 0.20235756385068762, 'fraction_numerical': 0.018664047151277015, 'mean_word_length': 1.6128205128205129, 'pattern_counts': {'":': 8, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6610800', 'n_tokens_mistral': 357, 'n_tokens_neox': 348, 'n_words': 62}