From 6a893718b62bdc62f7c693bfd0d73e2659187555 Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Fri, 9 May 2003 12:11:15 +0000 Subject: [PATCH] Added undo / redo functionality --- www/extras/htmlArea/editor.js | 6 ++++-- www/extras/htmlArea/images/ed_redo.gif | Bin 80 -> 861 bytes www/extras/htmlArea/images/ed_undo.gif | Bin 81 -> 862 bytes 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/extras/htmlArea/editor.js b/www/extras/htmlArea/editor.js index e1d86af75..ca7c216fe 100644 --- a/www/extras/htmlArea/editor.js +++ b/www/extras/htmlArea/editor.js @@ -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); } diff --git a/www/extras/htmlArea/images/ed_redo.gif b/www/extras/htmlArea/images/ed_redo.gif index 2b5ebbd927fe65b22d79a1eec6bf518431496eee..c2f9b62cfd21cefd5cf71f7686179eee239aae1a 100644 GIT binary patch literal 861 zcmZ?wbhEHb6k-r!_|C+@z|a5$Kx!0>hQJ660mYvzj0_A+3_2jcgYpCehZO@Whm6OD z1qYisgtcN$Y*0MNz@WsGz%eo5NTV=!+7*olO2?apc=NVMY)WvQq-x4maAMQa)6)%- I*;p8?0mZu;asU7T literal 80 zcmZ?wbhEHb6k-r!n8?7;(9i%R{{R2az`&sRlZ91;fr&u}$Og&^F)%PGPU&BH`t5s% h8H`>g{=T!j-{?-cl$cyJQ=Q%69ry81KKof2tO0y-8B72G diff --git a/www/extras/htmlArea/images/ed_undo.gif b/www/extras/htmlArea/images/ed_undo.gif index 05f041e9f9ee5a53ef2df798cc768fac3c5867e7..63424767e04609a0f0750a735fc2b6feceea7805 100644 GIT binary patch literal 862 zcmZ?wbhEHb6k-r!_|C+@z|a5$Kx!0>hQJ660mYvzj0_A+3_2jcgYpCehcyE$hm6OD z1qYisgtcN$Y*2J!5MX4n;7Cw#X%ga%TeBkYv1^x{z1WiuLnY5fNm(|Fmm8Lzo^Ft= J#>2s24FH-B8G--+ literal 81 zcmZ?wbhEHb6k-r!n8?7;(9i%R{{R2az`&sRlZ91;fr&u}$Og&^F)%PGP3d2G`YnGl iw@HI2pKI9LH