witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug that caused ever-growing notes in Internet Explorer 8.

This commit is contained in:
Dan Helfman 2009-07-26 10:31:03 -07:00
parent a770895c2a
commit 9d101ff1be
2 changed files with 6 additions and 3 deletions

3
NEWS
View File

@ -1,3 +1,6 @@
1.6.17: July 26, 2009
* Fixed a bug that caused ever-growing notes in Internet Explorer 8.
1.6.16: July 14, 2009
* Fixed a bug that prevented the new note button from working in Internet
Explorer. This fixes Luminotes support for Internet Explorer 8.

View File

@ -427,7 +427,7 @@ Editor.prototype.position_cursor = function ( div_range ) {
selection.addRange( range );
return;
}
} else if ( div_range && this.document.selection ) { // browsers such as IE
} else if ( div_range && this.document && this.document.selection ) { // browsers such as IE
function text_length( text ) {
var count = 0;
for ( var i = 0; i < text.length; i++ ) {
@ -470,7 +470,7 @@ Editor.prototype.position_cursor = function ( div_range ) {
range.selectNodeContents( last_node );
range.collapse( false );
selection.addRange( range );
} else if ( this.document.selection ) { // browsers such as IE
} else if ( this.document && this.document.selection ) { // browsers such as IE
var range = this.document.selection.createRange();
range.move( "textedit" );
range.select();
@ -671,7 +671,7 @@ Editor.prototype.resize = function ( get_height_from_div ) {
height -= FRAME_BORDER_HEIGHT * 2; // 2 pixels at the top and 2 at the bottom
// if no height is given, get the height from this editor's document body
} else {
if ( this.iframe && this.iframe.contentDocument && !WEBKIT ) { // Gecko and other sane browsers
if ( this.iframe && this.iframe.contentDocument && GECKO ) { // Gecko and other sane browsers
height = elementDimensions( this.document.documentElement ).h;
} else { // IE
height = this.document.body.scrollHeight;