My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Add Word cleaning to Ctrl+V in ActivEdit

Add Word cleaning to Ctrl+V in ActivEdit


Word content is only cleaned when you press the paste button in ActivEdit. Ctrl+V allows you to paste without cleaning, but if you would like to always have content parsed, use the API as follows:

<script language="JavaScript">
     function aeapi_local_onLoad(aeObject, fieldname) {
          aeObject.DOM.onkeyup = function aeObject.ae_onkeyup() {
               DHTMLSafe=aeObject;
               if(DHTMLSafe.DOM.parentWindow.event.keyCode == 86 && DHTMLSafe.DOM.parentWindow.event.ctrlKey) {
               ae_cleanWord(DHTMLSafe);
               }
          }
     }
</script>

Search Knowledge Base:
Sign up for our newsletter: | Subscribe with RSS: RSS
© ActivSoftware 1999 to 2005 | Privacy Statement