• I try Gutenberg again after 3 months without using it. I must say that many improvements have been made, congratulations to the contributors.

    I need to practice again to be completely at ease with this new editing experience, some things still seem illogical, the most important:
    – do not have basic formatting tools in the toolbar of a block paragraph (list, indentation …) when editing it. I find it strange to have to insert a new block “list” to insert a list between two paragraphs. When I write long texts I find it really not intuitive.

    When I look at the generated markup, after all it makes sense:

    <!-- wp:paragraph -->
    <p>Bonjour ce ci est un paragraphe écrit avec Gutenberg</p>
    <!-- /wp:paragraph -->
    
    <!-- wp:list -->
    <ul><li>Un<br/></li><li>deux<br/></li><li>trois<br/></li></ul>
    <!-- /wp:list -->
    
    <!-- wp:paragraph -->
    <p>Paragraphe à nouveau</p>
    <!-- /wp:paragraph -->

    Perhaps a “richtext” block could behave in this way and allow more freedom on formatting text, instead of formatting contents (images…).

    <!-- wp:richtext -->
    <p>Bonjour ce ci est un paragraphe! écrit avec Gutenberg</p>
    <ul><li>Un<br/></li><li>deux<br/></li><li>trois<br/></li></ul>
    <p>Paragraphe à nouveau</p>
    <!-- /wp:richtext -->

    Maybe these tools would be displayed / hidden via a button? UX people are better than me to say that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    You can actually do that with the “Classic” block, which basically puts the normal TinyMCE interface into a block for you to put in whatever you like.

    If you use the classic block, you’ll find that stuff in it will be on it’s own, outside of the <!-- wp:whatever --> tags, and just in the code as you would expect.

    However, the reason for the separation of those elements is really because the editor is based around moving blocks around and arranging them.

    For example, if you wanted to put an image on the right side of that list you have there, then the img tag needs to go in between the paragraph above it and the list itself. By having those blocks be separate things, you can drop an image block there, set it to align right, and the following list will then flow around it.

    Thread Starter Marie Comet

    (@chaton666)

    Hi Samuel, thanks you for your answer.

    I understand the principle of blocks, and what they serve. This is relevant for formatting content – as you exlained -, it’s less when you simply want to write vertical text with basic elements like lists (in my opinion).
    The classic block meets this need, I had not thought of using it. I hope it stays in the editor.

    • This reply was modified 6 years, 7 months ago by Marie Comet.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘On the right way’ is closed to new replies.