getblocklab / block-lab

A WordPress Admin interface and a simple templating system for building custom Gutenberg blocks.
https://getblocklab.com
GNU General Public License v2.0
416 stars 63 forks source link

Feature request: Extended formatting in rich text #483

Open zaewin opened 4 years ago

zaewin commented 4 years ago

It would be nice to be able to have some more features in the rich text. For example:

Another option would be to allow switching between normal and html mode. Sometimes we want to tweak the markup.

kienstra commented 4 years ago

Thanks

Hi @zaewin, Thanks for bringing this up.

The new Classic Text field can have headings:

test-cl

Maybe you already know about this, but it's possible to add a CSS class for the entire block. Though it sounds like you had in mind adding a class for only the field.

zaewin commented 4 years ago

@kienstra Hi!

That's great, I didn't realize that there was a new update! It would be nice to be able to switch to html input mode. Sometimes you might have a large text already in html and you just want to paste it into the block without having to reformat.

I do know about the block css class. However, I was rather thinking about a class picker just like the heading picker. Sometimes you'd probably want to style individual paragraphs with classes from your css. For example, if you want to achieve markup like this:

<h1>Heading</h1> <p>Lorem ipsum dolor sit amet</p> <p class="warning">Warning!</p> <p>Lorem ipsum dolor sit amet</p>

azanoni commented 4 years ago

What happened with this "Classic Text field" ? I only see "Text" and "Textarea" I want to a field that support rich text

I'm using Version 1.5.4

image

lukecarbis commented 4 years ago

Hi @azanoni – the Classic Text and Rich Text controls are available as part of Block Lab Pro.

https://getblocklab.com/block-lab-pro/

lukecarbis commented 4 years ago

Whoops. I think that reply answers your question, but the original feature request isn’t yet implemented, so reopening.