Edit a specific block from block settings?
Permalink
From the settings in a custom block, is it possible to open the modal block edit window for a specific block (I know the block ID) on top of the current one, and go back to the previous modal window when the edits have been saved?
Can you describe your problem a bit more specifically. I'm not sure if that would be the right approach to solve your underlying problem...
I figured it out already, it was simpler than I thought, even though I had to dig a little in ccm_app. Here's a simplified example how I did it:
<a id="editManually" href="http://localhost:4567/index.php/tools/required/edit_block_popup.php?cID=123&bID=68&arHandle=Main&btask=edit">Edit</a> <script> $(function() { $('#editManually').dialog(); var oldParse = window.ccm_parseBlockResponsePost; window.ccm_parseBlockResponsePost = function(resp) { if(oldParse) oldParse(resp); console.log(resp); }; }); </script>