Skip to content

Instantly share code, notes, and snippets.

@mattlevine
Forked from stevewithington/mura-js-form.js
Created April 27, 2018 19:09
Show Gist options
  • Save mattlevine/c341b8a03ef26caeb9cf87844c214b62 to your computer and use it in GitHub Desktop.
Save mattlevine/c341b8a03ef26caeb9cf87844c214b62 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