Changeset 1189


Ignore:
Timestamp:
07/17/09 10:12:21 (8 years ago)
Author:
ray
Message:

added toolbar config to Newbie example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/XinhaConfig.js

    r1131 r1189  
    4545   'Linker', 
    4646   'SuperClean', 
    47    'TableOperations' 
     47   'TableOperations','GetHtml' 
    4848  ]; 
    4949   
     
    7171   xinha_config = xinha_config ? xinha_config() : new Xinha.Config(); 
    7272         
     73  //this is the standard toolbar, feel free to remove buttons as you like 
     74  xinha_config.toolbar = 
     75  [ 
     76    ["popupeditor"], 
     77    ["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"], 
     78    ["separator","forecolor","hilitecolor","textindicator"], 
     79    ["separator","subscript","superscript"], 
     80    ["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"], 
     81    ["separator","insertorderedlist","insertunorderedlist","outdent","indent"], 
     82    ["separator","inserthorizontalrule","createlink","insertimage","inserttable"], 
     83    ["linebreak","separator","undo","redo","selectall","print"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]), 
     84    ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"], 
     85    ["separator","htmlmode","showhelp","about"] 
     86  ]; 
     87 
    7388   // To adjust the styling inside the editor, we can load an external stylesheet like this 
    7489   // NOTE : YOU MUST GIVE AN ABSOLUTE URL 
    75    
    7690   xinha_config.pageStyleSheets = [ _editor_url + "examples/files/full_example.css" ]; 
    7791   //if you're using Stylist, import a stylesheet like this 
    7892   xinha_config.stylistLoadStylesheet(_editor_url + "examples/files/stylist.css"); 
     93 
    7994 
    8095  /** STEP 4 *************************************************************** 
Note: See TracChangeset for help on using the changeset viewer.