Thibaud Colas
3186950de4
Only render tooltip link if there is a label for it
2018-10-07 22:27:51 +03:00
Matt Westcott
aecc8f1a3b
Prevent linking to root page in Draftail. Fixes #4605
2018-10-07 22:27:51 +03:00
Matt Westcott
6c7065ef99
Prevent Draftail from crashing on links to the root page
2018-10-07 22:27:51 +03:00
Thibaud Colas
bb14ba2ced
Revert "Upgrade gulp-sass to 4.0.1 and rebuild package-lock.json with npm 6"
...
This reverts commit 497207735a
.
2018-07-31 23:53:05 +03:00
Matt Westcott
497207735a
Upgrade gulp-sass to 4.0.1 and rebuild package-lock.json with npm 6
...
The only difference to the generated code appears to be in sourcemap data.
2018-07-31 23:48:57 +03:00
Matt Westcott
d9d1529cc0
Convert the document chooser modal to use static onload handlers
2018-06-20 15:35:41 +01:00
Matt Westcott
630a887d58
Convert the embed chooser modal to use static onload handlers
2018-06-20 15:35:41 +01:00
Matt Westcott
0ebf393b31
Convert the page/link chooser to use static onload handlers
2018-06-20 15:35:40 +01:00
Matt Westcott
aa9de4758f
Use static onload handlers in the image chooser modal
...
Instead of passing an 'onload' JS function as part of the AJAX response for each step of the workflow,
we specify all onload handlers up-front when initialising ModalWorkflow, and return a 'step' field
in the response to indicate which one to trigger.
2018-06-20 15:35:39 +01:00
Matt Westcott
8b3d3a7af8
Reorganise getChooserConfig for clarity
2018-06-20 15:35:39 +01:00
Thibaud Colas
c309753378
Expose reusable client-side code to build Draftail extensions ( #4467 )
...
* Expose Draftail package as global variable for reuse
* Expose Wagtail React components for reuse
* Expose Draftail-related React components for reuse
2018-04-18 00:27:07 +03:00
Thibaud Colas
7238f22ebd
Improve error display cross-browsers, and add translatable string
2018-04-02 19:05:02 +03:00
Thibaud Colas
411895e450
Update labels to make editor reload feature more understandable
2018-04-02 19:04:38 +03:00
Thibaud Colas
9918ee2b02
Fix Draftail editor fallback layout in .full fields
2018-04-02 19:04:37 +03:00
Thibaud Colas
2e74f0fdcf
Change EditorFallback button order
2018-04-02 17:24:57 +03:00
Thibaud Colas
101b446749
Add tests for EditorFallback
2018-04-02 17:24:57 +03:00
Thibaud Colas
04ebf0702c
Implement "Show error" feature for editor crash UI
2018-04-02 17:24:57 +03:00
Thibaud Colas
19725330af
Implement basic editor reloading
2018-04-02 17:24:57 +03:00
Thibaud Colas
7740d2d615
Add Draftail error handling component
2018-04-02 17:24:57 +03:00
Tony Yates
cab90e5d1b
Adding external link with selected text now includes text in link chooser. Fix #4328 ( #4366 )
2018-03-21 00:35:41 +02:00
Thibaud Colas
6246832408
Add JS source maps in production build for packaged Wagtail
2018-03-14 23:03:00 +01:00
Thibaud Colas
87b0a89e1e
Upgrade Draftail to latest release, addressing #4296
2018-02-27 15:48:34 +00:00
Thibaud Colas
96d39e4560
Display rich text image alt as plain text instead of read-only field
2018-02-23 16:19:04 +00:00
Thibaud Colas
c62c58c492
Add Draftail init fallback for StreamField/InlinePanel templated fields. Fix #4295
2018-02-23 16:02:57 +00:00
Thibaud Colas
18f9736c38
Fix Draftail initialising on the wrong elt. Fix #4295 ( #4301 )
2018-02-21 11:07:28 +00:00
Carlo Ascani
8c0170bb62
Animate the chevron icon when opening sub-menus in the admin ( #3069 )
2018-02-14 14:06:19 +02:00
Thibaud Colas
4cab7d67c3
Fix line break icon rendering in MS Edge
2018-02-12 21:54:08 +00:00
Thibaud Colas
1b9116ed2d
Fix link/doc/image/embed choosers crashing Draftail in IE11
2018-02-12 21:54:08 +00:00
Thibaud Colas
5c2ff7d461
Make Draftail toolbar display block to have sticky positioning in Safari
2018-02-12 21:54:08 +00:00
Thibaud Colas
9861c2a0d4
Move Draftail tooltips portal closer to the editor to prevent background flickering
2018-02-12 21:54:08 +00:00
Thibaud Colas
aecfce73ec
Refactor Draftail exports to match exposed module
2018-02-09 15:24:24 +00:00
Thibaud Colas
cedfd2b1bc
Update to latest Draftail and Draft.js
2018-02-09 15:24:24 +00:00
Thibaud Colas
e59863f903
Refactor Draftail JS plugin API to be more similar to the rich text features registry API
2018-02-09 15:24:24 +00:00
Thibaud Colas
ad2ec0b601
Add missing unit tests for Draftail JS code
2018-02-09 15:24:24 +00:00
Thibaud Colas
37316656f7
Remove unused strategy API from Draftail registry
2018-02-09 15:24:24 +00:00
Thibaud Colas
e272aba222
Make it possible to use SVG icons in Draftail
2018-02-09 15:24:24 +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