[FIX] website_forum: don't use span with style for forum

Forum sanitize the content before to be inserted in db.
So all tags style are removed...

Disabling the option styleWithSpan, will let summernote to use <b>, <u>, <i>
to allow the end user to change the style from an answer / question.
This commit is contained in:
Jeremy Kersten
2015-03-31 12:19:57 +02:00
parent 3c1036f029
commit 36ae07ed15
@@ -225,8 +225,9 @@
}
$textarea.summernote({
height: 150,
toolbar: toolbar
});
toolbar: toolbar,
styleWithSpan: false
});
$form.on('click', 'button, .a-submit', function () {
$textarea.html($form.find('.note-editable').code());
});