Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/CharacterMap/character-map.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/CharacterMap/character-map.js,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/CharacterMap/character-map.js 14 Jun 2007 01:36:55 -0000 1.6 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/CharacterMap/character-map.js 24 Nov 2007 15:35:33 -0000 1.7 @@ -1,15 +1,16 @@ -HTMLArea.loadStyle("CharacterMap.css","CharacterMap"); +/* This compressed file is part of Xinha. For uncomressed sources, forum, and bug reports, go to xinha.org */ +Xinha.loadStyle("CharacterMap.css","CharacterMap"); function CharacterMap(_1){ this.editor=_1; var _2=_1.config; var _3=this; -_2.registerButton({id:"insertcharacter",tooltip:HTMLArea._lc("Insert special character","CharacterMap"),image:_1.imgURL("ed_charmap.gif","CharacterMap"),textMode:false,action:function(_4){ +_2.registerButton({id:"insertcharacter",tooltip:Xinha._lc("Insert special character","CharacterMap"),image:_1.imgURL("ed_charmap.gif","CharacterMap"),textMode:false,action:function(_4){ _3.buttonPress(_4); }}); _2.addToolbarElement("insertcharacter","createlink",-1); if(_2.CharacterMap.mode=="panel"){ _1._CharacterMap=_1.addPanel("right"); -HTMLArea._addClass(_1._CharacterMap,"CharacterMap"); +Xinha._addClass(_1._CharacterMap,"CharacterMap"); _1.notifyOn("modechange",function(e,_6){ if(_6.mode=="text"){ _1.hidePanel(_1._CharacterMap); @@ -22,7 +23,7 @@ _1.hidePanel(_1._CharacterMap); } } -HTMLArea.Config.prototype.CharacterMap={"mode":"popup"}; +Xinha.Config.prototype.CharacterMap={"mode":"popup"}; CharacterMap._pluginInfo={name:"CharacterMap",version:"2.0",developer:"Laurent Vilday",developer_url:"http://www.mokhet.com/",c_owner:"Xinha community",sponsor:"",sponsor_url:"",license:"Creative Commons Attribution-ShareAlike License"}; CharacterMap._isActive=false; CharacterMap.prototype.buttonPress=function(_9){ @@ -40,7 +41,7 @@ if(!_b){ return false; } -if(HTMLArea.is_ie){ +if(Xinha.is_ie){ _9.focusEditor(); } _9.insertHTML(_b); @@ -51,12 +52,12 @@ var _e=this.editor; var _f=this; var a=document.createElement("a"); -HTMLArea._addClass(a,"entity"); +Xinha._addClass(a,"entity"); a.innerHTML=_c; a.href="javascript:void(0)"; -HTMLArea._addClass(a,(_d%2)?"light":"dark"); +Xinha._addClass(a,(_d%2)?"light":"dark"); a.onclick=function(){ -if(HTMLArea.is_ie){ +if(Xinha.is_ie){ _e.focusEditor(); } _e.insertHTML(_c); @@ -65,4 +66,4 @@ _e._CharacterMap.appendChild(a); a=null; }; - +