Changeset 525

Show
Ignore:
Timestamp:
08/25/08 22:30:46 (3 months ago)
Author:
jf.hovinne
Message:

Store instance index in wymbox.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/wymeditor/jquery.wymeditor.js

    r524 r525  
    3939    NAME                - The "name" attribute. 
    4040    INDEX               - A string replaced by the instance index. 
     41    WYM_INDEX           - A string used to get/set the instance index. 
    4142    BASE_PATH           - A string replaced by WYMeditor's base path. 
    4243    SKIN_PATH           - A string replaced by WYMeditor's skin path. 
     
    109110    NAME                : "name", 
    110111    INDEX               : "{Wym_Index}", 
     112    WYM_INDEX           : "wym_index", 
    111113    BASE_PATH           : "{Wym_Base_Path}", 
    112114    CSS_PATH            : "{Wym_Css_Path}", 
     
    722724      //load wymbox 
    723725      this._box = jQuery(this._element).hide().after(this._options.boxHtml).next(); 
     726 
     727      //store the instance index in the wymbox element 
     728      jQuery(this._box).data(WYMeditor.WYM_INDEX, this._index); 
    724729       
    725730      var h = WYMeditor.Helper;