Wykres commitów

8182 Commity (5b2c04411bddadbd22faf4dbb67d62a1ae741592)

Autor SHA1 Wiadomość Data
Thibaud Colas d674f7e656 Rename Hallo panel stylesheet to hallo.css 2018-01-17 22:01:40 +02:00
Thibaud Colas 194161ec59 Only load Hallo CSS if Hallo is in use 2018-01-17 22:01:40 +02:00
Thibaud Colas 9521f21359 Update all Hallo code to use .halloeditor class instead of .richtext 2018-01-17 22:01:40 +02:00
Thibaud Colas 72d06072d3 Update font family to serif stack for Draftail 2018-01-17 22:01:40 +02:00
Loic Teixeira 7e0882f751 Use snakecase for draftjs_exporter entities
Respect PEP8 convention for function names
2018-01-17 22:01:40 +02:00
Loic Teixeira 2fe31ddd84 Update to latest draftjs_exporter
See draftjs_exporter v2.0.0 release notes: https://github.com/springload/draftjs_exporter/releases/tag/v2.0.0
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
Thibaud Colas a741f3b7a6 Update to latest Draftail 2018-01-17 22:01:40 +02:00
Matt Westcott 4fe6104098 No need to explicitly pass None to EditorHTMLConverter when using default features 2018-01-17 21:59:32 +02:00
Matt Westcott 96eab7937c Ensure that draftail contentstate is never empty 2018-01-17 21:59:32 +02:00
Matt Westcott 8280c3e56e Make Draftail the default editor 2018-01-17 21:59:32 +02:00
Matt Westcott 8551ee9c2d Hide the Draftail editor's underlying input field 2018-01-17 21:59:32 +02:00
Matt Westcott a25760562f Switch draftjs_exporter to string backend 2018-01-17 21:59:32 +02:00
Matt Westcott e5de74d24b Populate embed data fields in contentstate 2018-01-17 21:59:32 +02:00
Matt Westcott 14a23af0d0 Update embed chooser to return json embed data as an extra parameter 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
Matt Westcott b0f8cd12b2 Handle image_formats parameter on ImageFeature 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
Matt Westcott 0f10d42e92 draftail uses 'alignment' property on images instead of 'format' 2018-01-17 21:59:31 +02:00
Matt Westcott 3d435327b6 Recover from block-level entities being (illegally) contained in other blocks 2018-01-17 21:59:31 +02:00
Matt Westcott e107812393 Move image/document/embed helpers out of wagtail.admin.rich_text into their respective wagtail.app.rich_text modules 2018-01-17 21:59:31 +02:00
Matt Westcott 1ceff85f12 Use feature registry to manage contentstate conversion rules 2018-01-17 21:59:31 +02:00
Matt Westcott 6ceee1a6ce implement hr 2018-01-17 21:59:31 +02:00
Matt Westcott ff0e601c61 implement media embeds 2018-01-17 21:59:31 +02:00
Matt Westcott d395b09849 implement image embeds 2018-01-17 21:59:31 +02:00
Matt Westcott 95fda6b116 implement document links 2018-01-17 21:59:31 +02:00
Matt Westcott 10453ff58f Support matching elements by attribute rules, and implement internal/external links 2018-01-17 21:59:31 +02:00
Matt Westcott dd2bd5b161 Refactor handle_starttag/handle_endtag to keep track of the original handler 2018-01-17 21:59:31 +02:00
Matt Westcott 5660bb85f4 Add test for external link 2018-01-17 21:59:31 +02:00
Matt Westcott ddc9ba30d2 Hook up feature definitions to draftail editor 2018-01-17 21:59:31 +02:00
Matt Westcott 450edd24aa Add horrible-but-necessary logic for normalising whitespace 2018-01-17 21:59:31 +02:00
Matt Westcott aa3b588cf4 Gracefully handle bare content at the top level 2018-01-17 21:59:31 +02:00
Matt Westcott 808ad56e0f gracefully handle unrecognised elements at the top level 2018-01-17 21:59:31 +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 8ce14cfb00 Integrate Draftail-related assets with Django widget 2018-01-17 21:59:31 +02:00
Thibaud Colas e18d490859 Integrate Draftail with wagtail-client package, Webpack, Sass 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
Thibaud Colas 00009252ac Add Draftail and Draft.js to dependencies 2018-01-17 21:59:31 +02:00
Matt Westcott 9fe86dde5d Implement conversion from contentstate to database rich text format 2018-01-17 21:52:48 +02:00
Matt Westcott 6806cff2d5 Add skeleton DraftailRichTextArea, with provision for converting from dbHTML to contentstate 2018-01-17 21:52:48 +02:00
Matt Westcott df0a6354ab Move hallo widget to wagtail.admin.rich_text.editors.hallo 2018-01-17 21:52:48 +02:00
Thibaud Colas 9f65e7001f Release notes for #3806 2018-01-17 21:48:44 +02:00
Janneke Janssen 4268ed3c3a Update autoprefixer list on browser support 2018-01-17 21:48:17 +02:00