Ignore:
Timestamp:
01/22/07 02:09:48 (13 years ago)
Author:
ray
Message:

Ticket #916 TODO: Change plugins to use Xinha object name

Location:
trunk/plugins/InsertSnippet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/InsertSnippet/insert-snippet.js

    r677 r681  
    3434        } 
    3535    } 
    36     HTMLArea._getback(backend,function (getback) {eval(getback); self.snippets = snippets;}); 
     36    Xinha._getback(backend,function (getback) {eval(getback); self.snippets = snippets;}); 
    3737} 
    3838 
     
    5656 
    5757InsertSnippet.prototype._lc = function(string) { 
    58     return HTMLArea._lc(string, 'InsertSnippet'); 
     58    return Xinha._lc(string, 'InsertSnippet'); 
    5959}; 
    6060 
     
    7171}; 
    7272 
    73 HTMLArea.Config.prototype.InsertSnippet = 
     73Xinha.Config.prototype.InsertSnippet = 
    7474{ 
    7575  'snippets' : _editor_url+"plugins/InsertSnippet/demosnippets.js", // purely demo purposes, you should change this 
  • trunk/plugins/InsertSnippet/popups/insertsnippet.html

    r677 r681  
    2222        var snippets = config.snippets; 
    2323         
    24         if ( config.pageStyle && !HTMLArea.is_ie) 
     24        if ( config.pageStyle && !Xinha.is_ie) 
    2525    { 
    2626                var style = document.createElement("style"); 
     
    5555                if (config.InsertSnippet.showInsertVariable) 
    5656                { 
    57                         insertAsVariable = ' | <a href="javascript:onOK('+i+','+'\'variable\''+')">'+HTMLArea._lc("Variable","InsertSnippet")+'</a>'; 
     57                        insertAsVariable = ' | <a href="javascript:onOK('+i+','+'\'variable\''+')">'+Xinha._lc("Variable","InsertSnippet")+'</a>'; 
    5858                } 
    5959                var new_cell = trow.insertCell(0); 
    60                 new_cell.innerHTML = snippet_name +': '+HTMLArea._lc("Insert as","InsertSnippet")+' <a href="javascript:onOK('+i+','+'\'html\''+')">HTML</a>'+insertAsVariable + ' (<a id="show_preview'+i+'" href="javascript:preview(\'show\','+i+')">'+HTMLArea._lc("Show preview","InsertSnippet")+'</a>)<div id="preview'+i+'" style="display:none">'+snippets[i]['HTML']+'</div>';  
     60                new_cell.innerHTML = snippet_name +': '+Xinha._lc("Insert as","InsertSnippet")+' <a href="javascript:onOK('+i+','+'\'html\''+')">HTML</a>'+insertAsVariable + ' (<a id="show_preview'+i+'" href="javascript:preview(\'show\','+i+')">'+Xinha._lc("Show preview","InsertSnippet")+'</a>)<div id="preview'+i+'" style="display:none">'+snippets[i]['HTML']+'</div>';  
    6161                new_cell.id = 'cell' + i; 
    6262                         
     
    7272                case 'show': 
    7373                        document.getElementById('preview'+i).style.display = 'block'; 
    74                         show_preview_link.innerHTML = HTMLArea._lc("Hide preview","InsertSnippet"); 
     74                        show_preview_link.innerHTML = Xinha._lc("Hide preview","InsertSnippet"); 
    7575                        show_preview_link.href = "javascript:preview('hide','"+i+"');"; 
    7676                         
     
    7878                case 'hide': 
    7979                        document.getElementById('preview'+i).style.display = 'none'; 
    80                         show_preview_link.innerHTML = HTMLArea._lc("Show preview","InsertSnippet"); 
     80                        show_preview_link.innerHTML = Xinha._lc("Show preview","InsertSnippet"); 
    8181                        show_preview_link.href = "javascript:preview('show','"+i+"');"; 
    8282                break; 
Note: See TracChangeset for help on using the changeset viewer.