Changes between Version 2 and Version 3 of Documentation/Plugins/Stylist


Ignore:
Timestamp:
03/14/18 10:52:18 (4 months ago)
Author:
gogo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Plugins/Stylist

    v2 v3  
    1111it would only be avaliable in the stylist when the cursor is in an <li> element. 
    1212 
    13 Using the plugin is quite simple. 
     13== Configuration == 
     14 
     15**See the [wiki:NewbieGuide#ProvideSomeConfiguration NewbieGuide] for how to set configuration values in general, the below configuration options are available for this plugin.** 
     16 
    1417 
    1518{{{ 
    16   editor.registerPlugin(Stylist); 
    1719 
    1820  // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL 
    1921  //  otherwise it won't work! 
    20   cfg.stylistLoadStylesheet('/mystyles.css'); 
     22  xinha_config.stylistLoadStylesheet('/mystyles.css'); 
    2123 
    2224  // Or we can load styles directly 
    23   cfg.stylistLoadStyles('p.red_text { color:red }'); 
     25  xinha_config.stylistLoadStyles('p.red_text { color:red }'); 
    2426 
    2527  // If you want to provide "friendly" names you can do so like this 
    26   cfg.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'}); 
     28  xinha_config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'}); 
    2729 
    2830  // or like this 
    29   cfg.stylistLoadStylesheet('/mystyles.css', {'p.pink_text' : 'Pretty Pink'}); 
     31  xinha_config.stylistLoadStylesheet('/mystyles.css', {'p.pink_text' : 'Pretty Pink'}); 
    3032}}} 
    3133