Fixes issue #2696 - Limit on copy and paste in note box for new articles
This commit is contained in:
parent
7f0fd8b346
commit
f165cbfbc2
3 changed files with 17 additions and 2 deletions
|
@ -168,7 +168,7 @@ class App.TicketZoomArticleNew extends App.Controller
|
||||||
@$('[data-name="body"]').ce({
|
@$('[data-name="body"]').ce({
|
||||||
mode: 'richtext'
|
mode: 'richtext'
|
||||||
multiline: true
|
multiline: true
|
||||||
maxlength: 50000
|
maxlength: 150000
|
||||||
})
|
})
|
||||||
|
|
||||||
html5Upload.initialize(
|
html5Upload.initialize(
|
||||||
|
|
|
@ -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
|
|
@ -447,7 +447,7 @@ ObjectManager::Attribute.add(
|
||||||
data_type: 'richtext',
|
data_type: 'richtext',
|
||||||
data_option: {
|
data_option: {
|
||||||
type: 'richtext',
|
type: 'richtext',
|
||||||
maxlength: 20_000,
|
maxlength: 150_000,
|
||||||
upload: true,
|
upload: true,
|
||||||
rows: 8,
|
rows: 8,
|
||||||
null: true,
|
null: true,
|
||||||
|
|
Loading…
Reference in a new issue