Lines Matching refs:textarea
38 * @param selector editor the textarea to control
42 $textarea = jQuery(editor);
44 if($ctl.length === 0 || $textarea.length === 0) {
48 $textarea.css('height', DokuCookie.getValue('sizeCtl') || '300px');
52 dw_editor.setWrap($textarea[0], wrp);
71 * @param selector editor the textarea to control
75 var $textarea = jQuery(editor),
76 height = parseInt($textarea.css('height')) + val;
77 $textarea.css('height', height+'px');
78 DokuCookie.setValue('sizeCtl',$textarea.css('height'));
82 * Toggle the wrapping mode of the editor textarea and adjusts the
85 * @param selector editor the textarea to control
88 var $textarea = jQuery(editor),
89 wrap = $textarea.attr('wrap');
90 dw_editor.setWrap($textarea[0],
92 DokuCookie.setValue('wrapCtl',$textarea.attr('wrap'));
96 * Set the wrapping mode of a textarea
102 * @param DomObject textarea
105 setWrap: function(textarea, wrapAttrValue){
106 textarea.setAttribute('wrap', wrapAttrValue);
109 var parNod = textarea.parentNode;
110 var nxtSib = textarea.nextSibling;
111 parNod.removeChild(textarea);
112 parNod.insertBefore(textarea, nxtSib);