Commit graph

60 commits

Author SHA1 Message Date
Thibaud Colas
d8489574d3 Fix Draftail icon wrapping happening even if there is no icon 2018-01-17 22:01:40 +02:00
Thibaud Colas
8ab8592b40 Add custom Draftail blocks for images and embeds 2018-01-17 22:01:40 +02:00
Thibaud Colas
fa4af4b8cc Update Draftail styles to the dark theme 2018-01-17 22:01:40 +02:00
Thibaud Colas
382d59d1f3 Update Draftail integration to latest API 2018-01-17 22:01:40 +02:00
Matt Westcott
e5de74d24b Populate embed data fields in contentstate 2018-01-17 21:59:32 +02:00
Matt Westcott
ce0aa1f716 Fix conversion between db-format attributes and contentState data for images
Draftail expects 'alt' and 'format' to become 'altText' and 'alignment'.

Also ensure that the image chooser continues to the alt-text/format selection stage.
2018-01-17 21:59:32 +02:00
Thibaud Colas
f647c9f270 Fix JS error in Draftail sources because of script execution order 2018-01-17 21:59:32 +02:00
Thibaud Colas
1378b766ee Finish hooking up Draftail CSS & JS to Django widget 2018-01-17 21:59:31 +02:00
Thibaud Colas
9dc0ee47dd Fix linting issues in Draftail 2018-01-17 21:59:31 +02:00
Thibaud Colas
c163d93b72 Add Draftail component from https://github.com/springload/wagtaildraftail/ 2018-01-17 21:59:31 +02:00