• Resolved nicmare

    (@nicmare)


    Hi – really like the concept and simplicity of your plugin. Works great! Thank you very much for all that afford you spent into it. There is only one thing i can not find in the documentation of the gutenberg block integration:

    i miss basic stuff like text-alignment, font-weight, color etc… Almost everything the base “paragraph” block provides. I mean even if i assign a css-class, it won’t get outputted in the frontend:

    are there any plans to really make use of the typical gutenberg features?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author berkux

    (@berkux)

    Hi nicmare,
    you’re absolutely right.

    On the one hand the Template yet has to have HTML/CSS-Code.
    I experimented on using a wysiwyg-editor there, but this is complex.

    On the other hand: Indeed the additionals css from the Block is ignored.
    This is missing….
    Sorry about that. I’ll check how to add that…

    Bernhard

    Thread Starter nicmare

    (@nicmare)

    Hey Bernard, yes assigning css-classes to the JCI-blocks would be great. and regarding the format options: wyswyg is not the way gutenberg works. would be sufficient to have the basic text options (color, font, dimensions) which almost each gutenblock provides:

    Plugin Author berkux

    (@berkux)

    I thought about it and I hesitate to put formatting into the JCI plugin.
    Wrapping the JCI free Block into a GroupBlock would do it also:

    Or is there anything not possible this way. This would separate the BlockDesign and BlockData.
    And: Marking text in the rendered text would be overwritten when the JSON & template creating a new text. So the formatting of the text itself has to be done in the JCI template.
    Does that make sense?
    Bernhard

    Plugin Author berkux

    (@berkux)

    With the new version 1.5.6: Additional CSS class(es)” defined in the “Advanced” settings of the JCI free Block are now considered

    Thread Starter nicmare

    (@nicmare)

    1. first of all thank you very much for acting that fast
    2. confirming the printing of the class in the frontend works
    3. font styling: this i how i do it already but for simple stuff it would be more “gutenbergish” if i can simple set the font-weight right in that block instead of adding more object(s) to the DOM (like a group):

    as you can see i am requesting the same API-URL 3 times. First time it’s “bedeckt” written in bold. 2nd time its Wind & Richtung and 3rd time the rest below. Because i wanted some kind of visual gap between these information. Do you already use the get_block_wrapper_attributes function? it does all the code stuff by default. Check it out

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gutenberg-Block: format text output?’ is closed to new replies.