Wykres commitów

87 Commity (c3a4bf47586b25c72b24acc1789d75210db35881)

Autor SHA1 Wiadomość Data
Thibaud Colas c3a4bf4758 Make Draftail toolbar collapse to its buttons width 2018-01-18 18:32:15 +02:00
Thibaud Colas 3fbc55dbf8 Add tests to all decorators and blocks, making sure they support "no data" scenarios 2018-01-18 18:32:15 +02:00
Thibaud Colas 6e78b7fe3c Improve contrast of Draftail tooltip buttons 2018-01-18 18:31:24 +02:00
Matt Westcott e690e95503 Pass document filename as part of the metadata returned from the document chooser and dbHTML->contentState converter
This means we don't have to rely on pulling it from the document URL.
2018-01-18 15:35:25 +00:00
Thibaud Colas db33741d25 Change Draftail import paths so code is properly split by Webpack 2018-01-18 00:07:39 +02:00
Thibaud Colas d375ac8a07 Only load core-js shims 2018-01-17 23:47:18 +02:00
Thibaud Colas 792538b942 Expose React-related dependencies as global variables for extension 2018-01-17 23:23:17 +02:00
Thibaud Colas 7c5c1054e4 Remove unused styles for Hallo rich text images 2018-01-17 22:19:38 +02:00
Thibaud Colas 168f2ddd40 Remove unneeded button spacing override 2018-01-17 22:19:38 +02:00
Thibaud Colas f8b99045a7 Refactor Draftail sources to single component 2018-01-17 22:19:38 +02:00
Thibaud Colas 19a6189d57 Disable edit of images and embeds in Draftail - not cooked enough 2018-01-17 22:19:37 +02:00
Thibaud Colas 4054fb2f18 Make all Draftail interface translatable 2018-01-17 22:19:37 +02:00
Thibaud Colas 6f9ac80f5f Fix ImageSource onError callback 2018-01-17 22:19:37 +02:00
Thibaud Colas 143edbf7e7 Add basic error handling to all Draftail sources when AJAX fails 2018-01-17 22:19:37 +02:00
Thibaud Colas 1eb38a8b7c Replace object-assign and promise polyfills with core-js 2018-01-17 22:19:37 +02:00
Thibaud Colas d841616d0a Use new onClose prop to close sources when no result was selected 2018-01-17 22:17:15 +02:00
Thibaud Colas 127cea6d9c Update Streamfield sequence focus code to support Draftail 2018-01-17 22:17:15 +02:00
Thibaud Colas b31260a501 Remove over-engineering index.js for Draftail sources folder 2018-01-17 22:17:15 +02:00
Thibaud Colas 03c7f662d2 Make Draftail document rendering logic sturdier 2018-01-17 22:17:15 +02:00
Thibaud Colas 6aeb50bcd3 Stop inlining constant React components 2018-01-17 22:17:15 +02:00
Thibaud Colas f6cdd27972 Add Sass variable to avoid repeating icon size 2018-01-17 22:17:14 +02:00
Thibaud Colas 1614cc9a07 Add font-smoothing mixin for Wagtail, using it on tooltips 2018-01-17 22:17:14 +02:00
Thibaud Colas b34eb8dcf3 Adjust Draftail toolbar border-radius 2018-01-17 22:17:14 +02:00
Thibaud Colas 5adcd87617 Improve support for link text insertion in link/document sources 2018-01-17 22:16:35 +02:00
Thibaud Colas 0fd3b1872f Fix Draftail placeholder text rendering 2018-01-17 22:16:35 +02:00
Thibaud Colas bc2a4c3560 Add length constraints to tooltip label 2018-01-17 22:16:35 +02:00
Thibaud Colas 33b12fc879 Fix tests relying on outdated API 2018-01-17 22:16:35 +02:00
Thibaud Colas 68f508acd9 Update Draftail link data to support copy-pasted links 2018-01-17 22:16:35 +02:00
Thibaud Colas 24b7c437da Fix DocumentSource keeping too much data 2018-01-17 22:16:35 +02:00
Thibaud Colas e5856c6f34 Clean up Draftail image enitity definition, use the same attrs as Hallo 2018-01-17 22:16:35 +02:00
Thibaud Colas bafc042364 Fix ModalSource for latest Draftail API 2018-01-17 22:16:35 +02:00
Thibaud Colas 4803ad1c43 Add IE11 opt-out of rich text pasting, and documentation notes 2018-01-17 22:16:35 +02:00
Thibaud Colas 9c5c116b04 Update to Draftail 0.11.0 2018-01-17 22:16:35 +02:00
Thibaud Colas 4200b2e257 Tweak Draftail controls to align better with Wagtail 2018-01-17 22:15:35 +02:00
Thibaud Colas cf79badee7 Fix style leak of Wagtail panel icons in h2 tag 2018-01-17 22:15:35 +02:00
Thibaud Colas 9598e691f7 Align Draftail rich text typography with that of Hallo 2018-01-17 22:15:35 +02:00
Thibaud Colas 947b9dab6e Adjust Draftail editor styles to match that of Hallo (spacing, background) 2018-01-17 22:15:35 +02:00
Thibaud Colas 4f906d09c9 Refactor Hallo styles to separate files 2018-01-17 22:15:35 +02:00
Thibaud Colas 72d06072d3 Update font family to serif stack for Draftail 2018-01-17 22:01:40 +02:00
Thibaud Colas 73ed313a9f Update Link and Document decorators to Draftail 0.10 API 2018-01-17 22:01:40 +02:00
Thibaud Colas 306bd8dd03 Add safe maxListNesting default of 4 2018-01-17 22:01:40 +02:00
Thibaud Colas 26419e3731 Enable spellCheck in Draftail by default 2018-01-17 22:01:40 +02:00
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