Fixes issue #2696 - Limit on copy and paste in note box for new articles

This commit is contained in:
Martin Edenhofer 2019-08-16 08:47:32 +02:00 committed by Thorsten Eckel
parent 7f0fd8b346
commit f165cbfbc2
3 changed files with 17 additions and 2 deletions

View file

@ -168,7 +168,7 @@ class App.TicketZoomArticleNew extends App.Controller
@$('[data-name="body"]').ce({
mode: 'richtext'
multiline: true
maxlength: 50000
maxlength: 150000
})
html5Upload.initialize(

View file

@ -0,0 +1,15 @@
class ObjectManagerAttributeTicketArticleBodyMaxlengthChange < ActiveRecord::Migration[5.1]
def up
return if !Setting.find_by(name: 'system_init_done')
attribute = ObjectManager::Attribute.get(
object: 'TicketArticle',
name: 'body',
)
return if !attribute
attribute.data_option[:maxlength] = 150_000
attribute.save!
end
end

View file

@ -447,7 +447,7 @@ ObjectManager::Attribute.add(
data_type: 'richtext',
data_option: {
type: 'richtext',
maxlength: 20_000,
maxlength: 150_000,
upload: true,
rows: 8,
null: true,