wagtaildraftail icon indicating copy to clipboard operation
wagtaildraftail copied to clipboard

Replace T&C custom format example with something more universal

Open jjanssen opened this issue 8 years ago • 2 comments

I am running the wagtaildraftail test environment locally and playing around online at: https://springload.github.io/draftail/ Maybe I am bit of a n00b on this matter but I'm having some difficulty in pinpointing what T&C actually does. Is there a better naming for this UX-wise?

jjanssen avatar May 19 '17 09:05 jjanssen

T&C only adds a CSS class (and to make things more complicated, uses a div tag in the editor and a p tag once rendered).

I believe the reason it's still in the configuration example is to show how you can configure blocks (and that editor and render configurations don't have to be the same), but I agree there is probably a simpler, more explicit example to be found.

loicteixeira avatar May 22 '17 05:05 loicteixeira

I've changed the T&C example on https://www.draftail.org/ to "Tiny" text. As Loïc says, it's only meant as an example of how to define/create custom formats.

We'll have to improve this within this repository too.

thibaudcolas avatar Aug 24 '17 09:08 thibaudcolas