Changes between Initial Version and Version 1 of Documentation/Plugins/WysiwygWrap


Ignore:
Timestamp:
03/14/18 11:09:14 (3 years ago)
Author:
gogo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Plugins/WysiwygWrap

    v1 v1  
     1= Plugin: WysiwygWrap  = 
     2 
     3The purpose of this plugin is to wrap the content being edited in Xinha with certain elements of given ID and/or class when in the WYSIWYG view. 
     4 
     5[wiki:Plugins Back to Plugins] 
     6 
     7== Configuration == 
     8 
     9**See the [wiki:NewbieGuide#ProvideSomeConfiguration NewbieGuide] for how to set configuration values in general, the below configuration options are available for this plugin.** 
     10 
     11 
     12{{{ 
     13xinha_config.WysiwygWrap = 
     14{ 
     15  'elements' : [ 'div.className#fooid', 'ul', 'li' ] 
     16}; 
     17}}} 
     18 
     19will cause the xinha content to be wrapped with  
     20{{{ 
     21  <div id="fooid" class="className"> 
     22   <ul> 
     23     <li> 
     24        ## EDITABLE CONTENT HERE ## 
     25     </li> 
     26   </ul> 
     27  </div> 
     28}}} 
     29 
     30this wrapping will NOT be passed back to your server, you will only get the editable content itself, and you should not pass the wrapping into Xinha either, Xinha adds it and removes it as you go into and out of it.