Forum Replies Created

Viewing 2 replies - 46 through 47 (of 47 total)
  • Plugin Author Greg Zió?kowski

    (@gziolo)

    @eoutvik, did you try using JavaScript hooks? It’s possible to change basically everything that is set by default for core blocks with:
    https://developer.www.ads-software.com/block-editor/developers/filters/block-filters/#blocks-registerblocktype

    By replacing save method you can store in the post content fully customized HTML for every block.

    Forum: Reviews
    In reply to: [Gutenberg] Why Blocks?
    Plugin Author Greg Zió?kowski

    (@gziolo)

    @matihautameki, thanks for trying Gutenberg and leaving your review here.

    So, you are saying that saving post/page content elements as HTML with some comments is better than saving it as shortcodes?

    Yes, those comments are a collection of semantically consistent descriptions of what each block is and what its essential data is. During runtime, post_content is parsed and converted into blocks which are kept in memory, Thus, a Gutenberg post isn’t HTML, but a tree of objects and associated attributes. You can read more about it in here: https://www.ads-software.com/gutenberg/handbook/language/. I want also to emphasize this:

    Blocks are a helpful tool to describe how to edit content that goes beyond simple text, but they don’t carry much meaning once the final page has been generated and is consumed as an HTML document. Even though the end result is HTML in a browser, a “block” connotes more meaning than the HTML it generates. That extra meaning is what enables the rich editing experience, as it allows the application to include tools to help the user craft the content they want. The HTML is augmented with the editing tools. For many blocks, the HTML produced is incidental, and subject to change. Blocks can be powerful and significantly more complex than the HTML they produce.

    All this allows us to to introduce a few useful improvement to the way you interact with the editor:

    • you can easily insert a new block
    • what you see in the editor is almost identical to what you will see on the frontent
    • you can reorder your block with movers or soon use drag & drop to reorder them
    • you can convert block from one type to another with once click
    • you can multi-select blocks and perform bulk actions
Viewing 2 replies - 46 through 47 (of 47 total)