witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in which fonts set in one browser did not always show up as selected within a different browser.

This commit is contained in:
Dan Helfman 2008-12-27 00:09:54 -08:00
parent 80432f3cbb
commit 290391899c
2 changed files with 3 additions and 3 deletions

2
NEWS
View File

@ -1,4 +1,4 @@
1.5.11:
1.5.11: December 27, 2008
* Added a font selection button to the toolbar.
* Decreased the default note text font size, so now you can see more of your
note text at once.

View File

@ -4258,8 +4258,8 @@ function Font_pulldown( wiki, notebook_id, invoker, anchor, editor ) {
var current_font_family = editor.query_command_value( "fontname" );
if ( current_font_family ) {
current_font_family = current_font_family.toLowerCase();
if ( WEBKIT )
current_font_family = current_font_family.replace( /'/g, "" ).replace( /-webkit-/, "" );
current_font_family = current_font_family.replace( /'/g, "" ).replace( /-webkit-/, "" );
current_font_family = current_font_family.split( ',' )[ 0 ];
}
for ( var i in fonts ) {