Changeset 1339


Ignore:
Timestamp:
02/03/18 10:41:18 (8 months ago)
Author:
gogo
Message:

#1602 - Allow setting editor events after makeEditors and before startEditors

  xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
  xinha_editors.myTextArea.config.Events = {'onBeforeSubmit': function() { alert("foo"); }};
  Xinha.startEditors(xinha_editors);
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1332 r1339  
    41104110  { 
    41114111    var plugin = this.plugins[i].instance; 
     4112     
     4113    if(i == 'Events') 
     4114    { 
     4115      // 'Events' is a dummy plugin for events passed into config.Events 
     4116      //   so make sure we actually reference that config object in case 
     4117      //   it had been overwritten entirely (ticket:1602) 
     4118      plugin = this.config.Events; 
     4119    } 
    41124120 
    41134121    // Skip the browser specific plugin 
Note: See TracChangeset for help on using the changeset viewer.