Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
r2267: allow plugins to hook view event
May I suggest to provide individual ids for each of the input/image elements introduced by r2267, line 858 and 864?
return '<img src="txp_img/'.$view.'up.gif" height="100" width="19" alt="" id="article-tab-$tabevent" />';
return '<input name="view" type="image" src="txp_img/'.$tabevent.'down.gif" value="'.$tabevent.'" id="article-tab-$tabevent" />';
IMHO, this would be a useful extension for plugins which wanted to hook into the view switching event before it occurs without a lot of DOM traversal (might come handy for autosave, warn on window close, custom preview functionality).
Offline
Pages: 1