demarches-normaliennes/app/assets/javascripts/old_design/bootstrap_wysihtml5.js
2020-05-12 18:18:37 +02:00

39 lines
697 B
JavaScript

/* globals $ */
$(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'
});
});
}