[Fix #1729] Do not allow <code> tags in template editors

This commit is contained in:
Mathieu Magnin 2018-03-29 14:17:06 +02:00
parent 23326ca1a2
commit acc68bc050

View file

@ -2,6 +2,36 @@ $(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" });
$(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"
});
});
}