Bertrand Bordage
1a4c157ec8
Updates to react-streamfield 0.9.5.
2019-08-23 14:55:27 +01:00
Bertrand Bordage
ec60b02ea0
Updates broken JS tests.
2019-08-23 14:55:27 +01:00
Matt Westcott
725b01c809
Replace streamfield CSS with react-streamfield CSS
2019-08-23 14:55:26 +01:00
Mikael Engström
7e7ca39821
Merge branch 'master' into support-phone-number-links
2019-08-21 21:36:12 +02:00
Iman Syed
794d40b86b
Add ability to create anchor link tab within rich text link
...
- add tests
- Update changelog & release notes
2019-08-18 15:56:20 +10:00
Jonny Scholes
c0af26b076
Move and refactor upgrade notification JS
2019-08-04 17:39:55 +10:00
mien
4a343a5523
Add support for phone links in rich text
...
This is mainly copy paste of Liam Brenner work (#3776 ) but with
a few fixes to make it work with Draftail. Since mailto:-links
is supported i think it is reasonable to support tel:-links as
well
2019-08-01 16:12:22 +02:00
Iman Syed
d3f720995a
Make image fallback work for images with big/small aspect ratios. Fix #5472 ( #5474 )
2019-08-01 11:46:34 +01:00
Helen Chapman
1e85ff454c
Move focus to the pages explorer menu when open ( #5336 , #5394 )
...
* Ensure that when you open the explorer the focus moves to the first link of the menu, and add a label for the explorer navigation
* Add dialog role to pages explorer popup, and ensure that there is an option to close the dialog window when tabbing by making the close button visually hidden rather than display none
2019-06-20 18:02:28 +01:00
Helen Chapman
e33732cc63
Add more contextual information for screen readers in the explorer menu’s links ( #5335 , #5386 )
2019-06-19 15:19:41 +01:00
Jonny Scholes
4ef9919240
Refactor submenu JS to remove jquery dep and move to wagtail-client ( #5254 )
2019-06-19 12:30:39 +01:00
jordan-bauer
998440cfa9
Remove buggy tab order customisations in CMS admin ( #5383 , #5351 )
2019-06-18 12:49:16 +01:00
Thibaud Colas
0d22763e0a
In main nav & explorer menu, show focus outline within elements
2019-05-28 11:53:26 +01:00
Thibaud Colas
f4e2891857
Remove all existing outline overrides in admin UI
2019-05-28 11:53:26 +01:00
Thibaud Colas
278cda67ab
Add global tab-through focus outline styles
2019-05-28 11:53:26 +01:00
Deniz Dogan
647f2c1d1d
Fix Redux DevTools deprecation warning ( #5231 ). Fix #5214
2019-04-23 15:02:53 +01:00
Thibaud Colas
f987fa91c9
Upgrade Draftail to v1.2.1. Fix #4985 , adds more Markdown shortcuts ( #5117 )
...
This includes:
- [v1.0.0](https://github.com/springload/draftail/releases/tag/v1.0.0 ) (identical to v0.17.2)
- [v1.1.0](https://github.com/springload/draftail/releases/tag/v1.1.0 ) (contains fix for #4985 )
- [v1.2.0](https://github.com/springload/draftail/releases/tag/v1.2.0 )
- [v1.2.1](https://github.com/springload/draftail/releases/tag/v1.2.1 ) (fixes regression in v1.2.0)
Here is the combined CHANGELOG for what's relevant to Wagtail:
Bug fixes
~~~~~~~~~
- #4985 – Prevent crash when filtering pasted content whose last block is to be removed (e.g. unsupported image) ([#179 ](https://github.com/springload/draftail/issues/179 )).
- Stop unnecessarily calling `onSave` in the editor’s `onBlur` ([#173 ](https://github.com/springload/draftail/issues/173 )).
- Prevent crash in `DraftUtils.getEntitySelection`, when the provided entity key isn't valid (undefined, missing) ([#168 ](https://github.com/springload/draftail/pull/168 )).
- Fix entity removal and editing not doing anything when the selection is backwards (right to left) ([#168 ](https://github.com/springload/draftail/pull/168 )).
- Prevent the editor from crashing when copy-paste filtering removes all of its content (https://github.com/thibaudcolas/draftjs-filters/commit/652750f )
New features
~~~~~~~~~~~~
- Add support for Markdown shortcuts for inline styles, e.g. `**` for bold, `_` for italic, etc ([#134 ](https://github.com/springload/draftail/issues/134 ), [#187 ](https://github.com/springload/draftail/pull/187 )). View the full list of [keyboard shortcuts](https://www.draftail.org/docs/keyboard-shortcuts ).
New APIs
~~~~~~~~
- Add [`onFocus`](https://www.draftail.org/docs/api#managing-focus ) and [`onBlur`](https://www.draftail.org/docs/api#managing-focus ) props to use callbacks on those events. This can be useful for [form validation](https://www.draftail.org/docs/next/form-validation ). [#170 ](https://github.com/springload/draftail/issues/170 ), [#174 ](https://github.com/springload/draftail/pull/174 ), thanks to [@TheSpicyMeatball](https://github.com/TheSpicyMeatball ).
- Add [`plugins`](https://www.draftail.org/docs/plugins ) API to support extensions of the editor using the [draft-js-plugins](https://github.com/draft-js-plugins/draft-js-plugins ) architecture ([#83 ](https://github.com/springload/draftail/issues/83 ), [#171 ](https://github.com/springload/draftail/pull/171 )).
- Add ability to disable or customise the editor toolbar with [`topToolbar`](https://www.draftail.org/docs/customising-toolbars ).
- Add ability to add a toolbar below the editor with [`bottomToolbar`](https://www.draftail.org/docs/customising-toolbars ).
- Add data reset parameter to `DraftUtils.resetBlockWithType()`.
- Enable list continuation on Enter for custom `*-list-item` blocks. All that’s required is for the block type to end with `-list-item`.
None of those API additions will be usable within Wagtail (at least without hacks) until corresponding rich text features APIs are built to allow their configuration. The last 2 additions would already be usable but they would only be useful when leveraging the other APIs.
2019-03-21 20:29:26 +00:00
Md. Arifin Ibne Matin
edfd9afc1d
Add more built-in rich text formats ( #5141 )
2019-03-15 01:39:18 +01:00
Thibaud Colas
96ec1e0e4e
Preserve links when copy-pasting rich text content from Wagtail to other tools ( #5054 )
2019-02-07 00:01:03 +02:00
Brady
e77338f1a3
Highlight broken links to pages and documents in rich text. Fix #4802 ( #4813 )
2019-02-02 17:04:01 +00:00
Janneke Janssen
487f1f47b8
Define proper breakpoint definitions rather then typing @media ( #4860 )
2018-11-04 23:46:42 +02:00
Anselm Bradford
303ee0f95b
Add rel="noopener noreferrer" to target blank links
2018-10-27 12:46:49 +03:00
Coen van der Kamp
0e1c6b953d
Detach nav colors from color-grey vars gives fine grained color control
2018-10-11 12:07:51 +01:00
Thibaud Colas
ad5a3bbdc2
Remove unused React component generator
2018-10-10 14:02:29 +01:00
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
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
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