From 126680a1dce87332ea3e743d150594041477239c Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Sat, 10 May 2003 11:04:53 +0000 Subject: [PATCH] Added special characters --- www/extras/htmlArea/editor.js | 10 +- www/extras/htmlArea/images/ed_spec_char.gif | Bin 0 -> 924 bytes www/extras/htmlArea/popups/insert_char.html | 180 ++++++++++++++++++++ 3 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 www/extras/htmlArea/images/ed_spec_char.gif create mode 100644 www/extras/htmlArea/popups/insert_char.html diff --git a/www/extras/htmlArea/editor.js b/www/extras/htmlArea/editor.js index d99aacbc7..ee7707447 100644 --- a/www/extras/htmlArea/editor.js +++ b/www/extras/htmlArea/editor.js @@ -46,7 +46,7 @@ this.toolbar = [ ['fontsize'], // ['fontstyle'], // ['linebreak'], - ['undo','redo','word','spell','find','separator'], + ['undo','redo','word','spell','find','specchar','separator'], ['bold','italic','underline','separator'], ['strikethrough','subscript','superscript','separator'], ['justifyleft','justifycenter','justifyright','separator'], @@ -89,6 +89,7 @@ this.fontstyles = [ // make sure these exist in the header of page the conte this.btnList = { // buttonName: commandID, title, onclick, image, + "specchar": ['SpecChar', 'Insert Special Characters', 'editor_action(this.id)', 'ed_spec_char.gif'], "spell": ['spell', 'Spell Check', 'editor_action(this.id);', 'ed_spellcheck.gif'], "word": ['word', 'MS-Word cleanup', 'editor_action(this.id)', 'ed_word.gif'], "undo": ['Undo', 'Undo Ctrl+z', 'editor_action(this.id)', 'ed_undo.gif'], @@ -321,6 +322,13 @@ function editor_action(button_id) { // // CUSTOM BUTTONS START HERE // + // special characters + else if (cmdID == 'SpecChar') { + var newchar = showModalDialog(_editor_url + "popups/insert_char.html", '', "dialogWidth:493px; dialogHeight: 140px; resizable: no; help: no; status: no; scroll: no;"); + if (newchar == '') {return;} + else {editor_insertHTML(objname,newchar);} + } + // Insert a smiley else if (cmdID == 'Smileys') { // insert some text from a popup window var myTitle = "Insert a Smiley"; diff --git a/www/extras/htmlArea/images/ed_spec_char.gif b/www/extras/htmlArea/images/ed_spec_char.gif new file mode 100644 index 0000000000000000000000000000000000000000..177c9139aad26767813dfb48881df6d1e6599e66 GIT binary patch literal 924 zcmZ?wbhEHb6k-r!_|DGo|Ns932M#neH2h~^XaGV6AUz63LtvzYfZ|UUMg|6U1|5)x zL3x6KqmqH2L&jsnf`iQ*!df;O3m!T(@-lmrbQmNxFiNO%8E7yZaOq)Y@!;7oG2!?` zURN&`h6PU;r|P(`%h7yr-(eyv7fZ*^v-mz824mI6`HqD`S9flH7`Q+nRVeqB hh?dJ##*#}uKlNYuu8H2Q)^j81jq_@LaW)nPYXEA-I*0%O literal 0 HcmV?d00001 diff --git a/www/extras/htmlArea/popups/insert_char.html b/www/extras/htmlArea/popups/insert_char.html new file mode 100644 index 000000000..66f1d6cdb --- /dev/null +++ b/www/extras/htmlArea/popups/insert_char.html @@ -0,0 +1,180 @@ + + + +Insert Special Character + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 "¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ ·¸¹º»¼½¾
¿×Ø÷øƒˆ˜ÀÁÂÃÄÅÆ
ÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæ
çèéêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸ¢@
+
+ + + + +
Charactercode: 
+ +
+