springload / wagtaildraftail

🐦📝🍸 Draft.js editor for Wagtail, built upon Draftail and draftjs_exporter
https://pypi.python.org/pypi/wagtaildraftail
MIT License
24 stars 3 forks source link

Replace T&C custom format example with something more universal #50

Open jjanssen opened 7 years ago

jjanssen commented 7 years ago

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?

loicteixeira commented 7 years ago

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.

thibaudcolas commented 6 years ago

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.