witten
/
luminotes
Archived
1
0
Fork 0

New strikethrough toolbar button.

This commit is contained in:
Dan Helfman 2008-05-14 00:07:02 +00:00
parent 8860ebc27b
commit 507e8412da
22 changed files with 44 additions and 0 deletions

3
NEWS
View File

@ -1,3 +1,6 @@
1.3.26: May 13, 2008
* New strikethough toolbar button.
1.3.25: May 13, 2008
* Added timed autosave.

View File

@ -34,6 +34,12 @@
background-image: url(/static/images/toolbar/underline_button.png);
}
#strikethrough_button_preload {
height: 0;
overflow: hidden;
background-image: url(/static/images/toolbar/strikethrough_button.png);
}
#title_button_preload {
height: 0;
overflow: hidden;

View File

@ -92,6 +92,12 @@ img {
background-image: url(/static/images/toolbar/underline_button_hover.png);
}
#strikethrough_button_hover_preload {
height: 0;
overflow: hidden;
background-image: url(/static/images/toolbar/strikethrough_button_hover.png);
}
#title_button_hover_preload {
height: 0;
overflow: hidden;
@ -146,6 +152,12 @@ img {
background-image: url(/static/images/toolbar/underline_button_down_hover.png);
}
#strikethrough_button_down_hover_preload {
height: 0;
overflow: hidden;
background-image: url(/static/images/toolbar/strikethrough_button_down_hover.png);
}
#title_button_down_hover_preload {
height: 0;
overflow: hidden;
@ -200,6 +212,12 @@ img {
background-image: url(/static/images/toolbar/underline_button_down.png);
}
#strikethrough_button_down_preload {
height: 0;
overflow: hidden;
background-image: url(/static/images/toolbar/strikethrough_button_down.png);
}
#title_button_down_preload {
height: 0;
overflow: hidden;

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

View File

@ -302,6 +302,7 @@ Wiki.prototype.populate = function ( startup_notes, current_notes, note_read_wri
connect( "bold", "onclick", function ( event ) { self.toggle_button( event, "bold" ); } );
connect( "italic", "onclick", function ( event ) { self.toggle_button( event, "italic" ); } );
connect( "underline", "onclick", function ( event ) { self.toggle_button( event, "underline" ); } );
connect( "strikethrough", "onclick", function ( event ) { self.toggle_button( event, "strikethrough" ); } );
connect( "title", "onclick", function ( event ) { self.toggle_button( event, "title" ); } );
connect( "insertUnorderedList", "onclick", function ( event ) { self.toggle_button( event, "insertUnorderedList" ); } );
connect( "insertOrderedList", "onclick", function ( event ) { self.toggle_button( event, "insertOrderedList" ); } );
@ -312,6 +313,7 @@ Wiki.prototype.populate = function ( startup_notes, current_notes, note_read_wri
this.make_image_button( "bold" );
this.make_image_button( "italic" );
this.make_image_button( "underline" );
this.make_image_button( "strikethrough" );
this.make_image_button( "title" );
this.make_image_button( "insertUnorderedList", "bullet_list" );
this.make_image_button( "insertOrderedList", "numbered_list" );
@ -906,6 +908,9 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
// ctrl-u: underline
} else if ( code == 85 ) {
this.toggle_button( event, "underline" );
// ctrl-s: strikethrough
} else if ( code == 83 ) {
this.toggle_button( event, "strikethrough" );
// ctrl-t: title
} else if ( code == 84 ) {
this.toggle_button( event, "title" );
@ -1095,6 +1100,7 @@ Wiki.prototype.update_toolbar = function() {
this.update_button( "bold", "b", node_names );
this.update_button( "italic", "i", node_names );
this.update_button( "underline", "u", node_names );
this.update_button( "strikethrough", "strike", node_names );
this.update_button( "title", "h3", node_names );
this.update_button( "insertUnorderedList", "ul", node_names );
this.update_button( "insertOrderedList", "ol", node_names );

View File

@ -366,6 +366,7 @@ class Front_page( Product_page ):
Span( id = u"bold_button_preload" ),
Span( id = u"italic_button_preload" ),
Span( id = u"underline_button_preload" ),
Span( id = u"strikethrough_button_preload" ),
Span( id = u"title_button_preload" ),
Span( id = u"bullet_list_button_preload" ),
Span( id = u"numbered_list_button_preload" ),

View File

@ -51,6 +51,13 @@ class Toolbar( Div ):
width = u"40", height = u"40",
class_ = "image_button",
) ),
Div( Input(
type = u"image",
id = u"strikethrough", title = u"strikethrough [ctrl-S]",
src = u"/static/images/toolbar/strikethrough_button.png",
width = u"40", height = u"40",
class_ = "image_button",
) ),
Div( Input(
type = u"image",
id = u"title", title = u"title [ctrl-T]",
@ -84,6 +91,7 @@ class Toolbar( Div ):
Span( id = "bold_button_hover_preload" ),
Span( id = "italic_button_hover_preload" ),
Span( id = "underline_button_hover_preload" ),
Span( id = "strikethrough_button_hover_preload" ),
Span( id = "title_button_hover_preload" ),
Span( id = "bullet_list_button_hover_preload" ),
Span( id = "numbered_list_button_hover_preload" ),
@ -94,6 +102,7 @@ class Toolbar( Div ):
Span( id = "bold_button_down_hover_preload" ),
Span( id = "italic_button_down_hover_preload" ),
Span( id = "underline_button_down_hover_preload" ),
Span( id = "strikethrough_button_down_hover_preload" ),
Span( id = "title_button_down_hover_preload" ),
Span( id = "bullet_list_button_down_hover_preload" ),
Span( id = "numbered_list_button_down_hover_preload" ),
@ -104,6 +113,7 @@ class Toolbar( Div ):
Span( id = "bold_button_down_preload" ),
Span( id = "italic_button_down_preload" ),
Span( id = "underline_button_down_preload" ),
Span( id = "strikethrough_button_down_preload" ),
Span( id = "title_button_down_preload" ),
Span( id = "bullet_list_button_down_preload" ),
Span( id = "numbered_list_button_down_preload" ),