In Richtext class: change "const array" (forbidden in php < 5.6) by "public static array"