witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in Firefox 3 in which disabling title text did not work. Fixed a bug in Firefox 2 and 3 so enter consistently inserts the same tag.

This commit is contained in:
Dan Helfman 2008-08-11 20:37:20 -07:00
parent f3aa7a4497
commit 5ef02e5c0c
2 changed files with 9 additions and 3 deletions

6
NEWS
View File

@ -1,6 +1,10 @@
1.4.24:
1.4.24: August 11, 2008:
* Added a light gray line under note title text to make it clearer that it's
a title as opposed to just bold text.
* Fixed a bug in Firefox 3 in which disabling title text did not work.
* Fixed a bug in Firefox 2 and 3 in which pasting a paragraph tag into a
note caused the enter key to change from inserting a line break tag to
inserting a paragraph tag.
1.4.23: August 11, 2008:
* New notebook import feature for importing notes from a CSV file. (Beta.)

View File

@ -191,8 +191,10 @@ Editor.prototype.finish_init = function () {
}
// browsers such as Firefox, but not Opera
if ( this.iframe.contentDocument && !/Opera/.test( navigator.userAgent ) && this.edit_enabled )
if ( this.iframe.contentDocument && !/Opera/.test( navigator.userAgent ) && this.edit_enabled ) {
this.exec_command( "styleWithCSS", false );
this.exec_command( "insertbronreturn", true );
}
this.resize();
if ( this.init_highlight ) self.highlight();
@ -245,7 +247,7 @@ Editor.prototype.exec_command = function ( command, parameter ) {
if ( command == "h3" ) {
if ( this.state_enabled( "h3" ) )
this.document.execCommand( "formatblock", false, "normal" );
this.document.execCommand( "formatblock", false, "<p>" );
else
this.document.execCommand( "formatblock", false, "<h3>" );
return;