From 9dffc27428ad0bd4c92d930bb8346acc92e04635 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Mon, 20 Jul 2020 11:52:33 +0200 Subject: [PATCH] Increase chars limit for RTE --- config/initializers/constants.rb | 2 +- spec/models/system_notification_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index f2fa01f64..7fe8b3f2b 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -18,7 +18,7 @@ class Constants # Max characters for long text fields TEXT_MAX_LENGTH = 10000 # Max characters for rich text fields (in html format) - RICH_TEXT_MAX_LENGTH = 50000 + RICH_TEXT_MAX_LENGTH = 100000 # Max characters for color field (given in HEX format) COLOR_MAX_LENGTH = 7 # Max characters for text in dropdown list element diff --git a/spec/models/system_notification_spec.rb b/spec/models/system_notification_spec.rb index d309ed03f..72a7226f7 100644 --- a/spec/models/system_notification_spec.rb +++ b/spec/models/system_notification_spec.rb @@ -22,7 +22,7 @@ describe SystemNotification do describe '#modal_body' do it { is_expected.to validate_presence_of(:modal_body) } - it { is_expected.to validate_length_of(:modal_body).is_at_most(50000) } + it { is_expected.to validate_length_of(:modal_body).is_at_most(100000) } end describe '#description' do