Ajout possibilité balises <br> dans texte introduction quizs
This commit is contained in:
parent
6ada8656b1
commit
25efc8ae7b
@ -54,7 +54,7 @@ module.exports = (sequelize, DataTypes) =>
|
|||||||
introduction:
|
introduction:
|
||||||
{
|
{
|
||||||
type: DataTypes.TEXT, allowNull: false,
|
type: DataTypes.TEXT, allowNull: false,
|
||||||
set(value) { this.setDataValue("introduction", tool.trimIfNotNull(striptags(value,"<p><b><i><em><strong><ul><li><div><a>"))); },
|
set(value) { this.setDataValue("introduction", tool.trimIfNotNull(striptags(value,"<p><b><i><em><strong><ul><li><div><a><br>"))); },
|
||||||
validate:
|
validate:
|
||||||
{
|
{
|
||||||
notNull: { msg: txt.needIntroduction }
|
notNull: { msg: txt.needIntroduction }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user