How to render block in edit mode by default or trigger edit on load?

Support MB Blocks How to render block in edit mode by default or trigger edit on load?Resolved

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17521
    PrzemekPrzemek
    Participant

    Hello, is it possible to render a block (at admin side) in edit mode instead of preview by default?
    It seems there's no such option so far (it's in ACF), however, I wonder if it could be done by firing some javascript via mb_blocks_preview on load.

    Thanks in advance!

    #17524
    Anh TranAnh Tran
    Keymaster

    I'm afraid there's no such option. Just wondering why would you want that?

    #17527
    PrzemekPrzemek
    Participant

    I just had clients recently who needed to fill a large number of inputs within multiple blocks across many posts and they didn't want to click edit every single time.

    Also, I have some blocks that do not render anything interesting but store important data.

    #17538
    Anh TranAnh Tran
    Keymaster

    I got it. I'll add a param mode for the block that you can specify the initial mode: edit or preview (default).

    #17544
    PrzemekPrzemek
    Participant

    That's great! Thank you.

    #17582
    Anh TranAnh Tran
    Keymaster

    I've just added the param in the latest version. Please update.

    #17585
    PrzemekPrzemek
    Participant

    Such small while so useful!
    Thank you!

    #23660
    Jacob HillJacob Hill
    Participant

    Excellent! Can this be added to the blocks extension's documentation? https://docs.metabox.io/extensions/mb-blocks/

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.