Ignore:
Timestamp:
06/13/07 18:34:34 (13 years ago)
Author:
wymsy
Message:

Change namespace from HTMLArea to Xinha in all the plugins - ref ticket #916

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/CharacterMap/character-map.js

    r770 r856  
    1 // Character Map plugin for HTMLArea 
     1// Character Map plugin for Xinha 
    22// Original Author - Bernhard Pfeifer novocaine@gmx.net 
    3 HTMLArea.loadStyle( 'CharacterMap.css', 'CharacterMap' ); 
     3Xinha.loadStyle( 'CharacterMap.css', 'CharacterMap' ); 
    44 
    55function CharacterMap( editor ) 
     
    1111    { 
    1212      id       : 'insertcharacter', 
    13       tooltip  : HTMLArea._lc( 'Insert special character', 'CharacterMap' ), 
     13      tooltip  : Xinha._lc( 'Insert special character', 'CharacterMap' ), 
    1414      image    : editor.imgURL( 'ed_charmap.gif', 'CharacterMap' ), 
    1515      textMode : false, 
     
    2222  { 
    2323    editor._CharacterMap = editor.addPanel( 'right' ); 
    24     HTMLArea._addClass( editor._CharacterMap, 'CharacterMap' ); 
     24    Xinha._addClass( editor._CharacterMap, 'CharacterMap' ); 
    2525 
    2626    editor.notifyOn( 'modechange', 
     
    5757 
    5858// configuration mode : panel or popup 
    59 HTMLArea.Config.prototype.CharacterMap = 
     59Xinha.Config.prototype.CharacterMap = 
    6060{ 
    6161  'mode': 'popup' // configuration mode : panel or popup 
     
    9797    { 
    9898      if ( !entity ) return false; 
    99       if ( HTMLArea.is_ie ) editor.focusEditor(); 
     99      if ( Xinha.is_ie ) editor.focusEditor(); 
    100100      editor.insertHTML( entity ); 
    101101    }, null); 
     
    108108  var self = this; 
    109109  var a = document.createElement( 'a' ); 
    110   HTMLArea._addClass( a, 'entity' ); 
     110  Xinha._addClass( a, 'entity' ); 
    111111  a.innerHTML = entite; 
    112112  a.href = 'javascript:void(0)'; 
    113   HTMLArea._addClass(a, (pos%2)? 'light':'dark'); 
     113  Xinha._addClass(a, (pos%2)? 'light':'dark'); 
    114114  a.onclick = function() 
    115115  { 
    116     if (HTMLArea.is_ie) editor.focusEditor(); 
     116    if (Xinha.is_ie) editor.focusEditor(); 
    117117    editor.insertHTML( entite ); 
    118118    //self._isActive = false; 
Note: See TracChangeset for help on using the changeset viewer.