Ignore:
Timestamp:
06/03/07 12:11:44 (12 years ago)
Author:
gocher
Message:
  • integrate new config settings in the example:

sizeIncludesPanels, htmlareaPaste, getHtmlMethod, undoTimeout, changeJustifyWithDirection, fullPage, pageStyle, expandRelativeUrl, maikeLinkShowsTarget, stripScripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ext_example-body.html

    r836 r845  
    9292      xinha_config.height = settings.height; 
    9393      xinha_config.sizeIncludesBars = settings.sizeIncludesBars; 
     94      xinha_config.sizeIncludesPanels = settings.sizeIncludesPanels; 
    9495      xinha_config.statusBar = settings.statusBar; 
     96      xinha_config.htmlareaPaste = settings.htmlareaPaste; 
    9597      xinha_config.mozParaHandler = settings.mozParaHandler; 
     98      xinha_config.getHtmlMethod = settings.getHtmlMethod; 
    9699      xinha_config.undoSteps = settings.undoSteps; 
     100      xinha_config.undoTimeout = settings.undoTimeout; 
     101      xinha_config.changeJustifyWithDirection = settings.changeJustifyWithDirection; 
     102      xinha_config.fullPage = settings.fullPage; 
     103      xinha_config.pageStyle = settings.pageStyle; 
    97104      xinha_config.baseHref = settings.baseHref; 
     105      xinha_config.expandRelativeUrl = settings.expandRelativeUrl; 
    98106      xinha_config.stripBaseHref = settings.stripBaseHref; 
    99107      xinha_config.stripSelfNamedAnchors = settings.stripSelfNamedAnchors; 
     
    101109      xinha_config.sevenBitClean = settings.sevenBitClean; 
    102110      xinha_config.killWordOnPaste = settings.killWordOnPaste; 
     111      xinha_config.makeLinkShowsTarget = settings.makeLinkShowsTarget; 
     112      xinha_config.flowToolbars = settings.flowToolbars; 
     113      xinha_config.stripScripts = settings.stripScripts; 
    103114      xinha_config.flowToolbars = settings.flowToolbars; 
    104115      xinha_config.showLoading = settings.showLoading; 
    105  
     116      xinha_config.pageStyleSheets = ["own.css"]; 
     117 
     118// Create a default configuration for the plugins 
    106119      if (typeof CharCounter != 'undefined') { 
    107120        xinha_config.CharCounter.showChar = settings.showChar; 
     
    110123      } 
    111124 
    112       if (typeof CharacterMap != 'undefined') xinha_config.CharacterMap.mode = settings.CharacterMapMode; 
    113       if (typeof ListType != 'undefined') xinha_config.ListType.mode = settings.ListTypeMode; 
    114  
    115       if(typeof CSS != 'undefined') { 
    116         xinha_config.pageStyle = "@import url(custom.css);"; 
    117       } 
     125      if(typeof CharacterMap != 'undefined') xinha_config.CharacterMap.mode = settings.CharacterMapMode; 
     126      if(typeof ListType != 'undefined') xinha_config.ListType.mode = settings.ListTypeMode; 
     127      if(typeof CSS != 'undefined') xinha_config.pageStyle = xinha_config.pageStyle + "\n" + "@import url(custom.css);"; 
     128      if(typeof DynamicCSS != 'undefined') xinha_config.pageStyle = "@import url(dynamic.css);"; 
     129      if(typeof Filter != 'undefined') xinha_config.Filters = ["Word", "Paragraph"]; 
    118130 
    119131      if(typeof Stylist != 'undefined') { 
     
    128140        // (you can do this for stylistLoadStylesheet as well) 
    129141        xinha_config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'}); 
    130       } 
    131  
    132       if(typeof DynamicCSS != 'undefined') { 
    133         xinha_config.pageStyle = "@import url(dynamic.css);"; 
    134142      } 
    135143 
     
    151159                     { options: keywrds2, context: "li" } ] 
    152160        } 
    153       } 
    154  
    155       if(typeof Filter != 'undefined') { 
    156         xinha_config.Filters = ["Word", "Paragraph"]; 
    157161      } 
    158162 
Note: See TracChangeset for help on using the changeset viewer.