Support

Account

Home Forums Gutenberg Switch to edit mode by default

Solved

Switch to edit mode by default

  • Hello.
    I can’t find any info on the net. Do you think it’s possible to switch the block to “Edit mode” by default? When it’s in “Preview mode”, if the block is empty, as it’s empty, the customer think it’s not working…

    • jnicol

    • February 25, 2019 at 2:47 pm

    You might be looking for the mode option for acf_register_block?

    https://www.advancedcustomfields.com/resources/acf_register_block/

    It sets the block’s default display mode, either “edit” or “preview”.

    Using the supports option you can disable toggling between modes, too. So you could disable the preview mode entirely if you want.

  • Hi jnicol,
    could you please elaborate on how I would set the defualt mode to “edit” and then disable toggling between modes?
    Thank you,
    Pat

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.