| | |
| | | this.ignore = ignore; |
| | | this.hideLangWindow(); |
| | | |
| | | if ($(this.text_area).val() == '' || ignore) { |
| | | var area = $(this.text_area); |
| | | |
| | | if (area.val() == '' || ignore) { |
| | | if (!this.custom_no_spelling_error) |
| | | this.flashNoSpellingErrorState(); |
| | | else |
| | |
| | | return; |
| | | } |
| | | |
| | | this.createEditLayer(this.text_area.offsetWidth, this.text_area.offsetHeight); |
| | | this.createEditLayer(area.width(), area.height()); |
| | | this.createErrorWindow(); |
| | | $('body').append(this.error_window); |
| | | |
| | |
| | | if (this.main_controller) |
| | | $(this.spell_span).unbind('click'); |
| | | |
| | | this.orginal_text = $(this.text_area).val(); |
| | | this.orginal_text = area.val(); |
| | | }; |
| | | |
| | | this.parseResult = function(r_text) |
| | |
| | | { |
| | | this.edit_layer = document.createElement('div'); |
| | | $(this.edit_layer).addClass('googie_edit_layer').attr('id', 'googie_edit_layer') |
| | | .width('auto').height(height); |
| | | .width(width).height(height); |
| | | |
| | | if (this.text_area.nodeName.toLowerCase() != 'input' || $(this.text_area).val() == '') { |
| | | $(this.edit_layer).css('overflow', 'auto').height(height-4); |
| | | $(this.edit_layer).css('overflow', 'auto'); |
| | | } else { |
| | | $(this.edit_layer).css('overflow', 'hidden'); |
| | | } |