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:
parent
f3aa7a4497
commit
5ef02e5c0c
6
NEWS
6
NEWS
|
@ -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.)
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue