Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Last active April 27, 2018 19:09
Show Gist options
  • Save stevewithington/e5d03dfd1e78e2cf680452b3fdb538e2 to your computer and use it in GitHub Desktop.
Save stevewithington/e5d03dfd1e78e2cf680452b3fdb538e2 to your computer and use it in GitHub Desktop.
Mura CMS: How to manipulate the DOM of a form in Mura CMS v7+
<script>
Mura.DisplayObject.Form.reopen({
onAfterRender: function() {
//this.context.targetEl is a pointer to the dom element that contains the rendered Mura form.
var container = Mura(this.context.targetEl);
console.log(this.context.targetEl);
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment