wysywyg field
This commit is contained in:
@@ -47,6 +47,7 @@ Espo.define('Views.Fields.Text', 'Views.Fields.Base', function (Dep) {
|
||||
},
|
||||
|
||||
setup: function () {
|
||||
Dep.prototype.setup.call(this);
|
||||
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({
|
||||
|
||||
type: 'wysiwyg',
|
||||
|
||||
detailTemplate: 'fields.wysiwyg.detail',
|
||||
|
||||
editTemplate: 'fields.wysiwyg.edit',
|
||||
|
||||
height: 150,
|
||||
height: 250,
|
||||
|
||||
rowsDefault: 10,
|
||||
|
||||
setup: function () {
|
||||
Dep.prototype.setup.call(this);
|
||||
|
||||
|
||||
this.height = this.params.height || this.height;
|
||||
this.toolbar = this.params.toolbar || [
|
||||
['style', ['style']],
|
||||
|
||||
Reference in New Issue
Block a user