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