Changeset 142 for trunk/examples


Ignore:
Timestamp:
05/10/05 07:02:00 (14 years ago)
Author:
niko
Message:

added InsertWords? plugin
#233

Location:
trunk/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/full_example-menu.html

    r134 r142  
    7979 
    8080      <label> 
     81        <input type="checkbox" name="plugins" value="InsertWords" /> InsertWords 
     82      </label> 
     83       
     84      <label> 
    8185                  <input type="checkbox" name="plugins" value="Abbreviation" /> Abbreviation 
    8286      </label> 
  • trunk/examples/full_example.js

    r99 r142  
    6464    } 
    6565 
     66    if(typeof InsertWords != 'undefined') 
     67    { 
     68      // Register the keyword/replacement list 
     69      var keywrds1 = new Object(); 
     70      var keywrds2 = new Object(); 
     71 
     72      keywrds1['-- Dropdown Label --'] = ''; 
     73      keywrds1['onekey'] = 'onevalue'; 
     74      keywrds1['twokey'] = 'twovalue'; 
     75      keywrds1['threekey'] = 'threevalue'; 
     76 
     77      keywrds2['-- Insert Keyword --'] = ''; 
     78      keywrds2['Username'] = '%user%'; 
     79      keywrds2['Last login date'] = '%last_login%'; 
     80      config.InsertWords = { 
     81        combos : [ { options: keywrds1, context: "body" }, 
     82               { options: keywrds2, context: "li" } ] 
     83      } 
     84 
     85    } 
     86 
    6687    return config; 
    6788  } 
Note: See TracChangeset for help on using the changeset viewer.