Merge pull request #2744 from urbanrotnik/ur-sci-4764-increase-characters-limit-for-rte

Increase chars limit for RTE [SCI-4764]
This commit is contained in:
Urban Rotnik 2020-07-23 12:58:36 +02:00 committed by GitHub
commit aecd6b228b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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