Wykres commitów

8307 Commity (5a5e6d5d2b442e7bf100d5ccd4d3741705535926)

Autor SHA1 Wiadomość Data
Matt Westcott 211cd3dd40 Use constants for whitespace behaviour flag values
Discussion: https://github.com/wagtail/wagtail/pull/4136#discussion_r162252303
2018-01-24 11:56:31 +00:00
Matt Westcott 2287624434 Remove redundant test for parent page.
Discussion: https://github.com/wagtail/wagtail/pull/4136#discussion_r161831347
2018-01-24 11:30:06 +00:00
Matt Westcott d2049841e2 Extract InlineEntityElementHandler class from LinkHandler
as per discussion at https://github.com/wagtail/wagtail/pull/4136#discussion_r161830948
2018-01-24 11:07:57 +00:00
Matt Westcott 0c675cc7a0 Support single, double and unquoted versions of element-with-attribute selector 2018-01-23 19:51:06 +00:00
Thibaud Colas 63ee902d93 Replace ugettext_lazy + serialisation with direct ugettext 2018-01-19 18:04:41 +02:00
Thibaud Colas 259dcc1f16 Prevent Jest from running tests in build directory 2018-01-19 18:02:49 +02:00
Thibaud Colas b9369ea141 Fix import path for unit tests 2018-01-18 19:30:01 +02:00
Thibaud Colas b072b144a3 Fix failing document test 2018-01-18 19:20:43 +02:00
Thibaud Colas 5bdec1e41a Lint Python files 2018-01-18 19:19:14 +02:00
Thibaud Colas f115ff7f4d JS linting fixes 2018-01-18 19:06:04 +02:00
Thibaud Colas 532a530836 Update Draftail tooltip button styles to be closer to other buttons 2018-01-18 18:48:00 +02:00
Thibaud Colas e72cb44d03 Add default values for document decorator rendering 2018-01-18 18:35:05 +02:00
Thibaud Colas 239365705c Finish making Draftail toolbar translatable 2018-01-18 18:32:16 +02:00
Thibaud Colas dc4e65b3b9 Add missing undo/redo controls in Draftail toolbar 2018-01-18 18:32:16 +02:00
Thibaud Colas fe21055b8e Add missing line breaks feature to Draftail toolbar 2018-01-18 18:32:16 +02:00
Thibaud Colas d1f3eebbab Filter out mailto: links pasted in Draftail 2018-01-18 18:32:16 +02:00
Thibaud Colas efb3768871 Update to latest Draftail 2018-01-18 18:32:15 +02:00
Thibaud Colas 9f17026fab Make Draftail ImageBlock alt field readonly for now 2018-01-18 18:32:15 +02:00
Thibaud Colas 5f08013ad2 Reproduce Hallo field styles for Draftail, and adapt padding 2018-01-18 18:32:15 +02:00
Thibaud Colas a54d5f0498 Filter out absolute links from outside of Wagtail 2018-01-18 18:32:15 +02:00
Thibaud Colas 8742b249f3 Update to latest Draftail 2018-01-18 18:32:15 +02:00
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 5928662b95 Return null for empty content, rather than adding a dummy block 2018-01-18 16:00:40 +00: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 61a57b6691 Add babel plugin to remove prop-types in production, shave off some kBs 2018-01-18 00:02:04 +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 f50ce2b19e Remove unused lodash dependencies 2018-01-17 22:21:30 +02:00
Thibaud Colas f593aa2f98 Replace draftjs_exporter constants with the corresponding Draft.js value 2018-01-17 22:19:38 +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 be608df638 pep8ify draftjs_exporter fallback functions 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 5305a5a281 Add optional error callback to ModalWorkflow 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 672e7090f0 Remove repetition in link entity to dbhtml converter 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 233f2f60a7 Update Draftail image whitelist to not rely on image paths 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