[FIX] website_forum: default karma
- Set the 'Editor Features: image and links' karma point to zero. - Set a user with a total karma points < 30 The user doesn't see the links buttons in the editor. This is because of an old fallback from 2014 which doesn't make sense anymore today. opw-2026025 closes odoo/odoo#34325 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -394,7 +394,7 @@ odoo.define('website_forum.website_forum', function (require) {
|
||||
|
||||
$('textarea.load_editor').each(function () {
|
||||
var $textarea = $(this);
|
||||
var editor_karma = $textarea.data('karma') || 30; // default value for backward compatibility
|
||||
var editor_karma = $textarea.data('karma') || 0; // default value for backward compatibility
|
||||
if (!$textarea.val().match(/\S/)) {
|
||||
$textarea.val("<p><br/></p>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user