wysywyg field
This commit is contained in:
@@ -93,7 +93,8 @@
|
|||||||
"attachmentMultiple": "Attachment Multiple",
|
"attachmentMultiple": "Attachment Multiple",
|
||||||
"rangeInt": "Range Integer",
|
"rangeInt": "Range Integer",
|
||||||
"rangeFloat": "Range Float",
|
"rangeFloat": "Range Float",
|
||||||
"rangeCurrency": "Range Currency"
|
"rangeCurrency": "Range Currency",
|
||||||
|
"wysiwyg": "Wysiwyg"
|
||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
@@ -117,7 +118,8 @@
|
|||||||
"entityList": "Entity List",
|
"entityList": "Entity List",
|
||||||
"isSorted": "Is Sorted (alphabetically)",
|
"isSorted": "Is Sorted (alphabetically)",
|
||||||
"audited": "Audited",
|
"audited": "Audited",
|
||||||
"trim": "Trim"
|
"trim": "Trim",
|
||||||
|
"height": "Height (px)"
|
||||||
},
|
},
|
||||||
"messages": {
|
"messages": {
|
||||||
"upgradeVersion": "Your EspoCRM will be upgraded to version <strong>{version}</strong>. This can take some time.",
|
"upgradeVersion": "Your EspoCRM will be upgraded to version <strong>{version}</strong>. This can take some time.",
|
||||||
|
|||||||
@@ -111,9 +111,9 @@
|
|||||||
"seeMoreDisabled": true
|
"seeMoreDisabled": true
|
||||||
},
|
},
|
||||||
"body": {
|
"body": {
|
||||||
"type": "text",
|
"type": "wysiwyg",
|
||||||
"view": "Fields.Wysiwyg",
|
"seeMoreDisabled": true,
|
||||||
"seeMoreDisabled": true
|
"height": 150
|
||||||
},
|
},
|
||||||
"isHtml": {
|
"isHtml": {
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"params":[
|
||||||
|
{
|
||||||
|
"name": "required",
|
||||||
|
"type": "bool",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "maxLength",
|
||||||
|
"type": "int"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "seeMoreDisabled",
|
||||||
|
"type": "bool"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "height",
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filter": true,
|
||||||
|
"fieldDefs":{
|
||||||
|
"type":"text"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -47,6 +47,7 @@ Espo.define('Views.Fields.Text', 'Views.Fields.Base', function (Dep) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup: function () {
|
setup: function () {
|
||||||
|
Dep.prototype.setup.call(this);
|
||||||
this.params.rows = this.params.rows || this.rowsDefault;
|
this.params.rows = this.params.rows || this.rowsDefault;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -23,18 +23,19 @@ Espo.define('views/fields/wysiwyg', ['views/fields/text', 'lib!Summernote'], fun
|
|||||||
|
|
||||||
return Dep.extend({
|
return Dep.extend({
|
||||||
|
|
||||||
|
type: 'wysiwyg',
|
||||||
|
|
||||||
detailTemplate: 'fields.wysiwyg.detail',
|
detailTemplate: 'fields.wysiwyg.detail',
|
||||||
|
|
||||||
editTemplate: 'fields.wysiwyg.edit',
|
editTemplate: 'fields.wysiwyg.edit',
|
||||||
|
|
||||||
height: 150,
|
height: 250,
|
||||||
|
|
||||||
rowsDefault: 10,
|
rowsDefault: 10,
|
||||||
|
|
||||||
setup: function () {
|
setup: function () {
|
||||||
Dep.prototype.setup.call(this);
|
Dep.prototype.setup.call(this);
|
||||||
|
|
||||||
|
|
||||||
this.height = this.params.height || this.height;
|
this.height = this.params.height || this.height;
|
||||||
this.toolbar = this.params.toolbar || [
|
this.toolbar = this.params.toolbar || [
|
||||||
['style', ['style']],
|
['style', ['style']],
|
||||||
|
|||||||
Reference in New Issue
Block a user