Added undo / redo functionality

This commit is contained in:
Len Kranendonk 2003-05-09 12:11:15 +00:00
parent 942ff1f80f
commit 6a893718b6
3 changed files with 4 additions and 2 deletions

View file

@ -42,7 +42,7 @@ this.toolbar = [
['fontsize'],
// ['fontstyle'],
// ['linebreak'],
['find','separator'],
['undo','redo','find','separator'],
['bold','italic','underline','separator'],
['strikethrough','subscript','superscript','separator'],
['justifyleft','justifycenter','justifyright','separator'],
@ -85,6 +85,8 @@ this.fontstyles = [ // make sure these exist in the header of page the conte
this.btnList = {
// buttonName: commandID, title, onclick, image,
"undo": ['Undo', 'Undo Ctrl+z', 'editor_action(this.id)', 'ed_undo.gif'],
"redo": ['Redo', 'Redo Ctrl+y', 'editor_action(this.id)', 'ed_redo.gif'],
"find": ['Find', 'Find', 'editor_action(this.id)', 'ed_find.gif'],
"smileys": ['Smileys', 'Insert Smiley', 'editor_action(this.id)', 'ed_smiley.gif'],
"bold": ['Bold', 'Bold', 'editor_action(this.id)', 'ed_format_bold.gif'],
@ -530,7 +532,7 @@ function editor_event(objname,runDelay) {
}, 333); // 1/3 second
editor_updateOutput(objname);
// editor_updateOutput(objname);
editor_updateToolbar(objname);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 861 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 862 B

Before After
Before After