mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
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:
commit
aecd6b228b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue