{modal content="editform"
className="display-editform-modal" overlay="false"}
{/modal}
jQuery('a[href=#editform]').click();
RegularLabs.Modals.open(<element>)
<button type="button" onclick="RegularLabs.Modals.open(document.querySelector('#editform-modal'));">
Open the form
</button>
{modal id="editform-modal" content="editform" className="display-editform-modal" overlay="false"}{/modal}
{modalcontent editform}
...
{/modalcontent}
if(window.RegularLabs && window.RegularLabs.Modals) {
// J4
} else {
// J3
}