Hi guys,
TS 6.5 sp2 + patch 1767 on Solaris 9.
LiveSite 2.2.1 installed, but not related to this case.anyone ever notice this?
We have a FormAPI onItemChange handler attached to a textarea field with an (inline) VisualFormat editor (VFE). The handler is fired if VFE is in "WYSIWYG" mode, but not if the VFE loses focus when in "Source mode".
Details:[HTML][/HTML]<br /><pre>IWEventRegistry.addItemHandler("/News/Teaser", "onItemChange", TeaserChange);<br />function TeaserChange(item) { <br /> alert ("Change detected"); <br />}<br /></pre> <br />now, this VFE can be in "View as WYSIWYG" mode or "View HTML Source" mode. <br /><br />If user makes changes to the VFE, and leaves the VFE (put focus on another field) when the VFE is in "WYSIWYG" mode, then the onItemChange handler is executed. <br /><br />HOWEVER, if user puts the VFE in "Source" mode, makes changes and leaves the VFE (focus on another field), then onItemChange handler is NOT executed! <br /><br />First response from support was "<i>oh, but that's how it's meant to work</i>". We've asked them to double-check that, and provide relevant documentation that could back that statement.<br /><br />note: the only other devnet post about VFE and onItemChange that I could find, is this one (<a href="
http://devnet.interwoven.com/forums_vb/showthread.php?t=23092&forumid=13&highlight=onitemchange+visual+format" target="_blank">VisualFormat and onItemChange issue</a>), but seems not related.<br /><br /><br />NOTE: similarly, when leaving the VFE in "Source" mode, the "cleaning" rules which can be set in the VFE config are not applied either... but on (very) close reading of the VF manual, there's a little hint about this in the description of publishviewassource.