2018-10-02 16:59:30 +02:00
|
|
|
/* globals $ */
|
|
|
|
|
2020-05-07 16:31:36 +02:00
|
|
|
$(document).on('DOMContentLoaded', wysihtml5_active);
|
2016-02-18 11:56:54 +01:00
|
|
|
|
2018-10-02 16:59:30 +02:00
|
|
|
function wysihtml5_active() {
|
2020-04-30 15:42:29 +02:00
|
|
|
$('.wysihtml5').each(function (i, elem) {
|
2018-03-29 14:17:06 +02:00
|
|
|
$(elem).wysihtml5({
|
|
|
|
toolbar: {
|
2018-10-02 16:59:30 +02:00
|
|
|
fa: true,
|
|
|
|
link: false,
|
|
|
|
color: false
|
2018-03-29 14:17:06 +02:00
|
|
|
},
|
|
|
|
parserRules: {
|
|
|
|
tags: {
|
|
|
|
p: {},
|
|
|
|
h1: {},
|
|
|
|
h2: {},
|
|
|
|
h3: {},
|
|
|
|
h4: {},
|
|
|
|
h5: {},
|
|
|
|
h6: {},
|
|
|
|
b: {},
|
|
|
|
i: {},
|
|
|
|
u: {},
|
|
|
|
small: {},
|
|
|
|
blockquote: {},
|
|
|
|
ul: {},
|
|
|
|
ol: {},
|
|
|
|
li: {},
|
|
|
|
img: {},
|
|
|
|
code: {
|
|
|
|
unwrap: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-10-02 16:59:30 +02:00
|
|
|
locale: 'fr-FR'
|
2018-03-29 14:17:06 +02:00
|
|
|
});
|
2017-04-04 16:15:33 +02:00
|
|
|
});
|
2017-02-14 11:13:48 +01:00
|
|
|
}
|