Custom Fields
Re-Envisioned
Support MB Blocks How to render block in edit mode by default or trigger edit on load?

  • Creator
    Topic
  • #17521
    Resolved Przemek
    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #17524
    Anh Tran
    Keymaster

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

    #17527
    Przemek
    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 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
    Przemek
    Participant

    That’s great! Thank you.

    #17582
    Anh Tran
    Keymaster

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

    #17585
    Przemek
    Participant

    Such small while so useful!
    Thank you!

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

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash