remove rows option from wysihtml, use css instead
This commit is contained in:
src
@ -85,7 +85,8 @@
|
|||||||
|
|
||||||
/* set exact width of textarea to fit buttons toolbar */
|
/* set exact width of textarea to fit buttons toolbar */
|
||||||
.editable-wysihtml5 {
|
.editable-wysihtml5 {
|
||||||
width: 566px;
|
width: 566px;
|
||||||
|
height: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* clear button shown as link in date inputs */
|
/* clear button shown as link in date inputs */
|
||||||
|
@ -42,15 +42,13 @@ $(function(){
|
|||||||
this.$input.attr('id', 'textarea_'+(new Date()).getTime());
|
this.$input.attr('id', 'textarea_'+(new Date()).getTime());
|
||||||
|
|
||||||
this.setClass();
|
this.setClass();
|
||||||
this.setAttr('rows');
|
|
||||||
this.setAttr('placeholder');
|
this.setAttr('placeholder');
|
||||||
|
|
||||||
|
|
||||||
//resolve deffered when widget loaded
|
//resolve deffered when widget loaded
|
||||||
$.extend(this.options.wysihtml5, {
|
$.extend(this.options.wysihtml5, {
|
||||||
events: {
|
events: {
|
||||||
load: function() {
|
load: function() {
|
||||||
deferred.resolve();
|
deferred.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -90,12 +88,12 @@ $(function(){
|
|||||||
@property tpl
|
@property tpl
|
||||||
@default <textarea></textarea>
|
@default <textarea></textarea>
|
||||||
**/
|
**/
|
||||||
tpl:'<textarea class="editable-wysihtml5"></textarea>',
|
tpl:'<textarea></textarea>',
|
||||||
/**
|
/**
|
||||||
@property inputclass
|
@property inputclass
|
||||||
@default null
|
@default editable-wysihtml5
|
||||||
**/
|
**/
|
||||||
inputclass: null,
|
inputclass: 'editable-wysihtml5',
|
||||||
/**
|
/**
|
||||||
Placeholder attribute of input. Shown when input is empty.
|
Placeholder attribute of input. Shown when input is empty.
|
||||||
|
|
||||||
@ -105,14 +103,6 @@ $(function(){
|
|||||||
**/
|
**/
|
||||||
placeholder: null,
|
placeholder: null,
|
||||||
/**
|
/**
|
||||||
Number of rows in textarea
|
|
||||||
|
|
||||||
@property rows
|
|
||||||
@type integer
|
|
||||||
@default 10
|
|
||||||
**/
|
|
||||||
rows: 10,
|
|
||||||
/**
|
|
||||||
Wysihtml5 default options.
|
Wysihtml5 default options.
|
||||||
See https://github.com/jhollingworth/bootstrap-wysihtml5#options
|
See https://github.com/jhollingworth/bootstrap-wysihtml5#options
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user