Giter VIP home page Giter VIP logo

block-locking-plugin's Introduction

Block Locking Plugin (Experimental)

Experimental plugin to store some content locking features that I'm testing out.

This should not be used in production and features may be changed/removed at any time.

Features

"Uses Advanced Editing Lock" Block Setting

Group and cover blocks can opt into "advanced editing lock" by checking the "Uses Advanced Editing Lock" toggle in the Advanced Inspector Controls. This will allow you to lock the structure of the group/group block, but still allow you to edit the content itself.

"Repeater" Block Setting (disabled - broken since 6.6?)

Button and List blocks can enable a "repeater" setting in the Advanced Inspector Controls. This will allow you to duplicate/remove individual buttons and list items while inside the "Basic" mode.

"Advanced" Lock Toggle in Toolbar

An "Advanced Editing" button at the top of the block editor allows you to quickly toggle the contentOnly lock on and off instead of using the "lock" button. Group blocks can opt into this behavior by checking the "Uses Advanced Editing Lock" toggle in the Advanced Inspector Controls.

Blocks / Block Variations

"Pattern Container" Group Block Variation

Group block variation that is perfect for scaffolding patterns. It is a full-width group block with some padding applied to it, and then an inner "container" group block with an advanced "content locking" toggle that you can use to lock your pattern once it's complete.

"View All Patterns" Custom Block (to be removed)

This plugin also comes with a custom block that can show you all (or one specific) block patterns on the frontend of your site. Useful for when you want to test how patterns will render on your site.

Potential Ideas

  • Bring in support for section styles to locked group blocks?

block-locking-plugin's People

Contributors

bacoords avatar

Stargazers

Huub avatar

Watchers

 avatar

block-locking-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.