Commit graph

124 commits

Author SHA1 Message Date
Thibaud Colas
714797ba15 Improve error display cross-browsers, and add translatable string 2018-04-04 11:43:50 +01:00
Thibaud Colas
e12da4daf0 Update labels to make editor reload feature more understandable 2018-04-04 11:43:44 +01:00
Thibaud Colas
914a5cffd0 Fix Draftail editor fallback layout in .full fields 2018-04-04 11:43:44 +01:00
Thibaud Colas
79cedcbd38 Change EditorFallback button order 2018-04-04 11:43:43 +01:00
Thibaud Colas
d5c21df749 Add tests for EditorFallback 2018-04-04 11:43:25 +01:00
Thibaud Colas
3e62722a3e Implement "Show error" feature for editor crash UI 2018-04-04 11:43:25 +01:00
Thibaud Colas
c9301a45c9 Implement basic editor reloading 2018-04-04 11:43:25 +01:00
Thibaud Colas
b6ef8a897d Add Draftail error handling component 2018-04-04 11:43:12 +01:00
Thibaud Colas
74cb739a1a Upgrade Draftail to latest release, addressing #4296 2018-02-27 15:36:22 +00:00
Thibaud Colas
bde97f55fd Display rich text image alt as plain text instead of read-only field 2018-02-23 16:19:39 +00:00
Thibaud Colas
0ce10bd294 Add Draftail init fallback for StreamField/InlinePanel templated fields. Fix #4295 2018-02-23 16:03:24 +00:00
Thibaud Colas
a35831ce8f Fix Draftail initialising on the wrong elt. Fix #4295 (#4301) 2018-02-21 11:08:42 +00:00
Thibaud Colas
974171a22e Fix line break icon rendering in MS Edge 2018-02-12 22:03:21 +00:00
Thibaud Colas
3f002e82e1 Fix link/doc/image/embed choosers crashing Draftail in IE11 2018-02-12 22:03:19 +00:00
Thibaud Colas
08ae63e1d8 Make Draftail toolbar display block to have sticky positioning in Safari 2018-02-12 22:03:18 +00:00
Thibaud Colas
f6022537e1 Move Draftail tooltips portal closer to the editor to prevent background flickering 2018-02-12 22:03:17 +00:00
Thibaud Colas
918d2a6b4b Refactor Draftail exports to match exposed module 2018-02-09 15:38:05 +00:00
Thibaud Colas
e16862fa51 Update to latest Draftail and Draft.js 2018-02-09 15:37:45 +00:00
Thibaud Colas
7675084cbe Refactor Draftail JS plugin API to be more similar to the rich text features registry API 2018-02-09 15:37:35 +00:00
Thibaud Colas
e3ab5c5ff5 Add missing unit tests for Draftail JS code 2018-02-09 15:37:15 +00:00
Thibaud Colas
d77f8681e0 Remove unused strategy API from Draftail registry 2018-02-09 15:37:03 +00:00
Thibaud Colas
4264211f0e Make it possible to use SVG icons in Draftail 2018-02-09 15:30:50 +00:00
Thibaud Colas
e4a06083af Add missed ellipsis in test stubs 2018-01-26 14:59:48 +00:00
Thibaud Colas
8fb0c9a39b Use ellipsis for "Loading" message 2018-01-26 14:59:48 +00:00
Thibaud Colas
e087e8270b Fix Draftail media block bottom border in Safari, Android Chrome 2018-01-26 12:34:05 +02:00
Thibaud Colas
0edc5be68c Remove unneeded Draftail init & save value conversions 2018-01-26 12:33:13 +02:00
Thibaud Colas
95bb2aecf9 Fix Draftail placeholder alignment in full-width field 2018-01-26 12:31:39 +02:00
Thibaud Colas
2e9b5e5569 Remove outdated TODOs in Draftail code 2018-01-26 11:34:17 +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
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
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
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