[Fix #1729] Do not allow <code> tags in template editors
This commit is contained in:
parent
23326ca1a2
commit
acc68bc050
1 changed files with 31 additions and 1 deletions
|
@ -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"
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue