Add a signature to ActivEdit
Author:
Greg Alton
Category: DHTML
This example adds a signature to an instance of ActivEdit when the Signature button is pressed.
<script language="JavaScript">
/* The signature function adds a signature to an instance of ActivEdit named content in this case, when the Signature button is pressed. */
function signature(){
var beforeChan = aeObjects.content.DOM.body.innerHTML;
aeObjects.content.DOM.body.innerHTML = beforeChan + "<br>Greg Alton<br><b>CFDev.com</b>";
}
</script>
<!-- The Signature button is added to the form that contains the instance of ActivEdit -->
<input type="button" value="Signature" onClick="signature()">
ActivEdit Browser Based WYSIWYG HTML Editor
More Code Samples