remove rows option from wysihtml, use css instead

This commit is contained in:
vitalets 2013-01-11 18:28:10 +04:00
parent 7ae43d47a2
commit 0061728aa1
2 changed files with 6 additions and 15 deletions
src
editable-form
inputs-ext/wysihtml5

@ -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