0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

2731 Commits

Author SHA1 Message Date
kevinhowbrook
31e3dab4ec Allow users to change their first and last name 2019-08-18 17:08:52 +10:00
Mikalai Radchuk
d2d8b2c9e3 Fixes layout for the FileField 2019-08-18 16:55:36 +10:00
Matt Westcott
dc780c5bb1 Fix failing tests due to different HTML escaping in Django 3.0
- Fix password reset tests
- Fix test for invalid-slug message
- Update changelog/release notes
2019-08-18 16:40:37 +10:00
Matt Westcott
34c1b4ccbe Upgrade django-taggit to 1.x
django-taggit 1.x drops Python 2.x support and thus the dependency on django.utils.six; this is a prerequisite for supporting Django 3.0.
The signature of TaggableManager.value_from_object has changed to return a list of Tags (previously it was a QuerySet of TaggedItems) and so search indexing and comparison need to be updated accordingly. There is a corresponding fix to ClusterTaggableManager in django-modelcluster 5.0.
2019-08-18 16:33:02 +10:00
Coen van der Kamp
525cf5922e Update Changelog 2019-08-18 16:12:14 +10: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
Jonathan Liuti
2de92f045c Upgrade minimum 6.x release for Elasticsearch to 6.4.0
Fix doc and test on ES6 python client compat

This commit changes the statement that version < 6.3.1 of the
elasticsearch python client should be used to instead state
that 6.4.0 is fine.

It also update the tests to reflect the statement.

Initially the `update_all_types` argument has been used to work
around an issue described in:
https://github.com/wagtail/wagtail/issues/2968

This argument was removed in elasticsearch-py 6.3.1 and making
use of it was raising an error.

With 6.4.0 nothing is raising anymore.
2019-08-18 15:37:11 +10:00
Matt Westcott
eaad013081 Output form media on add/edit/chooser image forms with custom models
* Add tests for custom image on multiple image uploader
* Output form media on image add/edit views
* Output form media for 'add image' form within image chooser modal
Note: this won't work reliably if the media is hosted on a CDN, because script tags inserted as part of a jQuery DOM insertion (as modals are) are loaded asynchronously and not guaranteed to complete loading before inline scripts are run. It's better than not having the includes there at all though...
2019-08-18 15:20:03 +10:00
rjpruitt16
f7ff6d39c4 Add caption field to TableBlock
* Create caption field added to table block widget

Caption allows for users users with screen readers to be
able to understand the contents of a table.

* Fixed bugs in javascript and typos

* Updated documentation and change log

* Fixed table caption bug and requested pr edits

* Fixed table caption bug and request pr edits

* Removed changes in changelog.txt

* Fixed bug and requested PR edits
2019-08-14 22:17:25 +02:00
Samir Shah
0ee07dddff Fix pageurl and slugurl handling of situations where request.site is null (#5501) 2019-08-14 12:07:12 +01:00
Andy Chosak
7c3418f99e Properly check permissions when viewing revisions (#5490)
Currently any user with any page permission can view any page revision.
This commit fixes that, and ensures that the user has publish or edit
permission on the page before showing a page revision. If not, the user
is presented with a 403.

This maintains the current behavior if the user has no page permissions,
which is to redirect to the admin home page.

New tests have been added to cover these changes.

Fixes issue 5426.
2019-08-12 16:22:28 +01:00
Andy Chosak
52b01cda67 Don't use page admin title when editing rich text (#5491)
When editing a rich text field and entering a link to a page whose Page
type overrides get_admin_display_title, the custom admin display title
is used both when browsing to select the page to link to and also when
viewing the rich text editor.

The first behavior is consistent with how custom admin display titles
are used throughout the admin, but the second behavior is not. The
Wagtail user should be able to use the rich text field as a reasonable
preview of what the rendered content will look like for the end user. To
do this, the "real" page title should be used, not the admin one.

This commit alters the data that gets passed to the rich text editor so
that its title is the real page title and not the admin one.

Fixes issue 5131.
2019-08-12 16:10:25 +01:00
Matt Westcott
ada652f19f Release note for #5427 2019-08-08 12:54:37 +01:00
Matt Westcott
311c007656 Deprecation note for dummy_request 2019-08-08 12:50:39 +01:00
Martey Dodoo
bb4e2fe2df Add labels to snippet bulk edit checkboxes for screen reader users. Fix #5328 (#5463) 2019-08-05 18:12:08 +01:00
Matt Westcott
6bc94ee56d Fill in release date for 2.6.1 2019-08-05 15:18:38 +01:00
Thibaud Colas
3710d1d6b2
Clarify CHANGELOG instructions in "Committing code" docs (#5483) 2019-08-05 13:35:29 +01:00
Jonny Scholes
c0af26b076 Move and refactor upgrade notification JS 2019-08-04 17:39:55 +10:00
Neal Todd
4a93424654 Prevent exception when attempting to delete a model with a protected 1-to-1 relation
Modeladmin handles notification to the user if a model instance has protected ForeignKey
relationships. However, if the protected relation is a OneToOneField it raises an exception:

  File ".../wagtail/wagtail/contrib/modeladmin/views.py", line 742, in post
    for obj in qs.all():
AttributeError: 'MyRelatedModel' object has no attribute 'all'

because qs in this case is the related instance rather than a queryset of related instances
(as is the case for a ForeignKey).

This commit handles the OneToOneField case as well.
2019-08-04 17:20:41 +10:00
Matt Westcott
cdb13b6490 Add release notes for 2.6.1 2019-08-02 17:34:20 +01: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
Matt Westcott
29741f57af Fill in release date for 2.6 2019-08-01 10:47:07 +01:00
Matt Westcott
4767557217 Fill in release date for 2.5.2 2019-08-01 10:46:33 +01:00
Matt Westcott
d75754a19b Add release notes for 2.5.2 2019-07-30 14:08:52 +01:00
Thibaud Colas
db9b582912 Delay dirty form check data snapshot to avoid race conditions. Fix #4978 (#5469)
User interaction with the form within the 10s delay also won’t trigger the confirmation message. There will still be race condition issues if form widgets like rich text take 10+ seconds to initialise – but that doesn’t seem likely.
2019-07-30 12:45:11 +01:00
Catherine Farman
f53dd95696 Change StreamField group labels color so labels are visible. Fix #5455 (#5462)
* use lighter grey for streamfield group label for accessible contrast
2019-07-26 16:39:11 -04:00
Rodrigo
1a2bf525f2 Add https support for scribd oembed provider (#739)
Currently scribd defaults to https for their sharing links - http still works but if you copy&paste quickly you may think it's broken
2019-07-25 14:19:07 +01:00
Matt Westcott
1468cab3a1 Release note for #5431 2019-07-25 10:46:41 +01:00
Daniele Procida
72db52371a Updated feature detection notes 2019-07-21 18:03:09 +10:00
Michael van Tellingen
9cd2fc2c82 Add a construct_page_listing_buttons hook
This hook mimics the functiolity provided by `construct_page_action_menu`
in that it constructs the final list of buttons to be shown in the wagtail
admin interface.  This means that within this function button's can be
removed, added or re-ordered.

See #4925
2019-07-21 17:40:26 +10:00
Tom Dyson
6d7a82cfb2 Fix update docs typo
Only two Ss in accessor. Also make quotes consistent.
2019-07-09 17:50:24 +01:00
Matt Westcott
772b76ef00 Add 2.7 section to changelog and release notes 2019-07-09 16:51:48 +01:00
Fidel Ramos
baee103024 Optimize admin.navigation.get_explorable_root_page
Testing the queryset in the if clause was causing the whole queryset
to be retrieved and populated from DB, all to check whether it was empty
or not.

The optimization is to rely on the strict behavior of
first_common_ancestor, which raises an exception if the queryset is
empty.
2019-07-09 11:57:40 +01:00
Andrew Miller
b9816d194a Don't make assumptions about the username field
The USERNAME_FIELD exists to allow customisation. Therefore we should make an assumption that `.username` exists on the model. Instead, we need to pull the required value from the USERNAME_FIELD and add in a fallback default.
2019-07-08 20:11:14 +01:00
William Blackie
3754d34caa Search query normalisation no longer removes punctuation #5416 2019-07-04 16:53:27 +01:00
Michael Hearn
10bbfec93c Also add change event to timepicker and datepicker 2019-07-03 16:10:41 +01:00
Jonny
851bd5f24d Added missing is_stored_locally() to AbstractDocument 2019-07-03 15:53:51 +01:00
Matt Westcott
7a47bfc9a7 Document the workaround for broken wagtailimages.Filter references in custom image migrations 2019-07-03 12:10:04 +01:00
Jaroslaw Zabiello
7df817d29c Update third_party_tutorials.rst
Add a detailed article about using GraphQL in Wagtail
2019-06-25 16:07:06 +01:00
Tom Dyson
ff850026e8 Adjust link label 2019-06-25 12:10:34 +01:00
Tom Dyson
08a301b3ce Clarify new three month release policy 2019-06-25 12:10:34 +01:00
jordan_bauer
0dac8f0764 added construction_hook_name to settings_menu (#5384) 2019-06-25 12:04:53 +01:00
Helen Chapman
6ec4ae0c32 Add screen-reader labels across multiple parts of the UI (#5274, #5339, #5372) 2019-06-21 16:29:00 +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
28cdf9c212 Improve screen-reader labels for action links in page listing (#5274, #5380) 2019-06-20 17:33:18 +01:00
Andy Babic
af415c7d19 Release notes for #5203 2019-06-20 16:33:09 +01:00
Karl Hobley
d008cc7e21 Implement Page.with_content_json and add to docs (fixes #5199) 2019-06-20 16:24:04 +01:00
Andy Babic
11af8123f7 Release notes for #5183 2019-06-20 16:06:59 +01:00
Thibaud Colas
e2f14057a4
Add dedicated accessibility section to v2.6 release notes (#5402) 2019-06-19 17:31:20 +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
Fidel Ramos
41f80af5db Optimization of UserPagePermissionsProxy.revisions_for_moderation (#5311)
revisions_for_moderation() was iterating over Page instances only
to use their path attribute. The optimization uses values_list()
over the GroupPagePermission queryset to retrieve only the page
paths without having to create the model instances in memory. This
saves roughly 50% of the runtime.
2019-06-18 20:14:54 +01:00
Helen Chapman
4a1f26778f Add labels to permission checkboxes for screen reader users (#5329, #5395)
- adds a fieldset around checkboxes with the same name
- add correct labels for object permissions table
- Ensure that image and document permissions labels display correctly, and ensure that labels for the dropdowns for document and image collections are not display:none
- Hide labels from sighted users in group edit / group add pages
2019-06-18 18:23:36 +01:00
jordan-bauer
998440cfa9 Remove buggy tab order customisations in CMS admin (#5383, #5351) 2019-06-18 12:49:16 +01:00
Helen Chapman
98d3ef4743 Ensure the 'add child page' button displays when focused (#5274, #5382) 2019-06-17 18:11:04 +01:00
Helen Chapman
4b4db7d771 Adds screen-reader-only text to the close button for modals (#5274, #5377)
* Adds clearer text to the close button for modals
* Use existing wagtailConfig.STRINGS to store the new translatable string for JS, rather than introducing a new library.
* Update list of string constants for translation in the tests file
* Remove aria-hidden on modal dialog close button
2019-06-17 15:56:48 +01:00
Matt Westcott
77a3bf60ca Add form media to users/edit.html (#5390) 2019-06-17 15:12:02 +01:00
Eric Dyken
eba3357fd4 Adds Collections section to editor's guide 2019-06-17 10:13:49 +01:00
Andy Babic
fdd8ddc2b1 Release notes for #5373 2019-06-13 13:56:49 +01:00
Thibaud Colas
4349c6c4dd Add release notes for #5356 2019-06-12 18:31:32 +01:00
kevinhowbrook
e8c64e593d Missing class imports 2019-06-11 11:53:19 +01:00
Andy Babic
13b485a2a9 Fix sphinx errors 2019-06-08 18:27:42 +01:00
Andy Babic
2115d57c3e Release notes for #5208 2019-06-08 18:03:24 +01:00
Seb
b839bd65bb Add support for custom search handler classes to ModelAdmin's IndexView
Author:    Seb <seb@takeflight.com.au>
Date:      Sun Apr 7 12:34:00 2019 +1000
2019-06-08 17:57:24 +01:00
Helen Chapman
ed7ca7ccea Stop repeating label, add image dimensions in image gallery & choosers for screen reader users (#5355)
- Images in the image listing now have an empty alt tag
- All information about the image, including title and image dimensions are now in the heading below
- The dimensions are visually hidden because they only relevant to screen readers, as sighted users can get and idea of the image dimensions from the thumbnail
2019-06-07 18:24:33 +01:00
Thibaud Colas
63635644cd
Add release notes for #5359 (#5363) 2019-06-07 18:13:04 +01:00
Dillen Meijboom
dd1597ea37 Implemented branding title prefix customization (#5344) 2019-06-07 17:06:00 +01:00
Matt Westcott
13133dad5b Release note for #5361 2019-06-07 16:22:44 +01:00
Thibaud Colas
059c139515 Remove bad practice example from CSS guidelines 2019-06-06 17:04:23 +01:00
Helen Chapman
669c1af4a0 Remove menu role from page edit action menu (#5354, #5327) 2019-06-05 19:11:55 +01:00
Thibaud Colas
e191582b94
Add a "Dashboard" label for logo link in the main nav for screen reader users (#5349)
* Use the correct link label for Dashboard link in main nav
* Remove dashboard link title with Wagtail version number
2019-06-04 21:51:18 +01:00
Thibaud Colas
e0f84389bb Release notes for #5317 2019-05-28 11:53:26 +01:00
Thibaud Colas
15a8907e44 Document partial focus outline support in IE11 2019-05-28 11:53:26 +01:00
Thibaud Colas
c9e740324c Release notes for #5304 2019-05-23 17:12:58 +01:00
Matt Westcott
c109dd3495 Add form field prefixes for input forms in chooser modals
Update chooser modal JS to use field IDs with prefixes

Note that the tag field JS no longer needs to be initialised here, as that's done in AdminTagWidget's inline JS
2019-05-23 18:03:59 +10:00
Matt Westcott
4cb308bf66 Move date / time widget initialiser JS into the widget's form media
This allows them to work on pages that do not include _editor_js.html (or page-editor.js). However, wagtailadmin/shared/datetimepicker_translations.html will still be required in order to localise the date picker UI.

Move datepicker translations to admin_base.html
2019-05-23 17:12:47 +10:00
LB Johnston
d57c7c59f3 Update changelog/contributors & release notes with recent contributions 2019-05-23 16:58:19 +10:00
LB (Ben Johnston)
e967b9763f
Update documentation - API example of image url to be relative
ImageRenditionField returns a relative URL - The example in the docs shows an absolute URL with the site's hostname, but the ImageRenditionField returns a relative URL.
Merge pull request #5306 from mihow/patch-2
2019-05-23 07:33:12 +10:00
LB (Ben Johnston)
ddbbbe4417
Revise wording of static resources usage in modeladmin documentation
Small wording revision
Merge pull request #5295 from DanielSwain/patch-35
2019-05-23 07:25:12 +10:00
Kalob Taulien
9489cb0758 Added ButtonHelper example code 2019-05-23 07:18:50 +10:00
LB Johnston
275d28cbff Update JS Docs to reference eslint instead of JS Code Style
- it does not appear that JavaScript code style is in use
- also revise the formatting script to align with actual scripts
2019-05-20 16:42:35 +01:00
LB Johnston
cbe8020527 Docs: Update CSS Guidelines to align with new shared config
- also make changes to set up similar sections to JS docs
2019-05-20 16:42:35 +01:00
Thibaud Colas
e71fed541c Add release notes for #5292 2019-05-20 15:32:52 +01:00
Michael Bunsen
b06cb6a6eb
ImageRenditionField returns a relative URL
The example in the docs shows an absolute URL with the site's hostname, but the ImageRenditionField returns a relative URL. 

Relevant source here: https://github.com/wagtail/wagtail/blob/master/wagtail/images/api/fields.py
2019-05-17 16:44:32 -07:00
Thibaud Colas
70a749b10a Add release notes for #5290 2019-05-14 14:16:10 +01:00
DanAtShenTech
ad7af7e191
Small wording revision 2019-05-13 14:09:18 -04:00
Deniz Dogan
0840b1a355 Add type check to get_rendition_or_not_found
Fixes #5222
2019-05-10 16:04:37 +01:00
Alex Tomkins
4891db0d89 Improve EditHandler __repr__
The string of self.form is the same as form.as_table - which is too verbose.

This updates the __repr__ of EditHandler/FieldPanel to show the class name of the form being used instead (or NoneType if it's None).
2019-05-10 15:35:52 +01:00
Seb
5e15984074 Add type to chunk_size arg for update_index 2019-05-10 14:58:28 +01:00
rinti
1b22794da2 Add correct dir attribute to html tag in admin 2019-05-10 14:47:10 +01:00
Adam
22e9e71ca7 Updated Page Chooser Panel ForeignKey
Needs a related_name
2019-05-10 14:41:09 +01:00
Thibaud Colas
3508f0bdbd Add release notes for #5287. Fix #5258 2019-05-10 14:37:11 +01:00
Matt Westcott
ed96db92f6 Add release notes page for 2.5.1 2019-05-07 18:22:37 +01:00
Adrian Turjak
52fe571eb2 Fix streamfield structblock compare append usage
Append was being called with 2 params, which clearly should
have been a tuple.

Fixes: https://github.com/wagtail/wagtail/issues/5261
2019-05-07 18:22:22 +01:00
David Beitey
602cd50d18 Add Django models import to Site Settings docs 2019-05-03 17:11:27 +01:00
Matt Westcott
51d8cac6f4 Release note for #4906 2019-05-03 16:56:46 +01:00
Samuel Mendes
352fa37dda Add documentation on supporting cell alignment 2019-05-03 13:51:51 +01:00
Samuel Mendes
ba78df06bc Upgrade handsontable to 6.2.2 and documentation 2019-05-03 13:36:51 +01:00
DanAtShenTech
6989c29d33 Create reference in docs to PostgreSQL backend
wagtailsearch_backends_postgresql was not present in the documentation for reference by change made in this PR:  https://github.com/wagtail/wagtail/pull/5233
2019-05-03 13:36:02 +01:00
Michael Hearn
7c9c00ab7c Don't show pages in explorer that user has no permissions to access
Partially addresses #4660
2019-05-03 11:42:38 +01:00
scil
1e55b98af0 Update performance.rst 2019-05-01 12:58:22 +01:00
DanAtShenTech
5d52f416df Clarify: extra fields can be indexed by PostgreSQL backend (#5233) 2019-05-01 11:24:14 +01:00
Deniz Dogan
74ce4adb6b Fix playful tail wag animation
Fixes #3780
2019-04-30 07:49:10 +10:00
DanAtShenTech
74ee1d4c11 Fix small typos/grammar in documentation
- editor manual - admin tasks - promoted search results
2019-04-30 07:35:45 +10:00
Thibaud Colas
effb0866b4 Update accessibility-related docs to clarify tools usage and reflect feedback 2019-04-29 13:55:41 +01:00
Thibaud Colas
e78d1c5410 Document accessibility targets and browser extensions to use 2019-04-29 13:55:41 +01:00
Thibaud Colas
374d35f945 Add linkable sub-sections to Testing in development docs 2019-04-29 13:55:41 +01:00
Thibaud Colas
a51631c306 Add jinjalint linter for Django templates, allowing errors for now 2019-04-29 13:55:41 +01:00
LB Johnston
8407245207 Add Third Party Tutorials & Links
- Revise grammar for Learn Wagtail link
- Add articles from Timonweb blog
- Add Youtube link for Google Cloud Platform
- Add blog from Jelastic (PaaS) deployment
- Add Mozilla guide for end users (really well laid out and reasonably generic)
2019-04-25 17:24:46 +01:00
Alex Tomkins
0644f90bef Revise test decorator used in TestPageEditHandlers
- Fix clear_edit_handler decorator
- Will  allow the TestPageEditHandlers test cases to run
- Fixes test for test_check_invalid_base_form_class
- Errors might be returned out of order, so sort them before comparing them to the expected list
2019-04-25 21:24:32 +10:00
Adrian Brunyate
d3b8bcb689 Round dimensions for images when scaling.
Add hook for validating image operations.
2019-04-25 11:31:38 +10:00
Thibaud Colas
b7f53ef276
Fix typo in rewrite handlers example code (#5253) 2019-04-24 21:10:12 +01:00
Matt Westcott
c5457755ef Fill in release date for 2.5 2019-04-24 16:21:43 +01:00
Kevin
31885d6f4e Add color-white to wagtail-version so it's visible (#5236). Fix #5189 2019-04-24 15:40:09 +01:00
Matt Westcott
14cb03b539 Stop ModelAdmin from failing when filtering over a foreign key relation
Supersedes #4998
As per https://github.com/wagtail/wagtail/pull/4998#issuecomment-471005219, the implementation of `lookup_allowed` is flawed and breaks on some valid lookups while allowing invalid ones. We are therefore better off removing that validation entirely.
2019-04-12 18:56:56 +01:00
dthompson86
444744dbfe Update the_explorer_page.rst (#5220)
Fixed a typo ;-)
2019-04-12 16:32:42 +01:00
DanAtShenTech
dec456479b Grammar fixes (#5212) 2019-04-12 16:30:17 +01:00
DanAtShenTech
751c666037 Grammar fixes 2019-04-12 16:24:20 +01:00
Cassidy Brooke
942979fc4e Missing step for Migrating RichTextFields to StreamField (#5207)
This generated block of code needs to stay or else there will be an error while running ./manage.py migrate. It is misleading that it is not included in this tutorial.
2019-04-12 16:20:11 +01:00
Nick Smith
21fc3d7679 Fix hooks documentation typo 2019-04-11 10:27:54 +01:00
nmorduch
2668c05146 Rearrange SCSS structure according to ITCSS 2019-04-11 11:08:47 +02:00
Andy Babic
f1c7b002d8 changelog and release note updates for #5147 2019-04-10 21:29:41 +01:00
Matt Westcott
a304f0f9f8 Remove support for Python 3.4 2019-04-10 17:39:53 +01:00
Matt Westcott
de1a674b0b Add 2.6 section to changelog and release notes 2019-04-10 17:39:11 +01:00
nmorduch
1760682db1 Typo fix in release notes 2019-04-10 11:19:54 -04:00
nmorduch
eb5a1766d3 Release notes for #5210 2019-04-10 11:19:38 -04:00
nmorduch
5d57d591fe Change suggested location of venv folder in installation tutorial
- Group venv creation and activation by shell, because Windows uses backslashes
- Note that the env folder should be excluded from version control
- Account for the need to specify the directory for `wagtail start` when the directory already exists
- Move the `cd mysite` line to the project dependency instruction, because that's the first time it's really needs

-
2019-04-10 10:22:52 -04:00
nmorduch
4c849e4562 Small text changes in documentation
Make explanations of project template more accurate and consistent
2019-04-10 10:22:40 -04:00
nmorduch
696c7d5b45 Break lines in the installation instructions semantically
In the interest of better diffs:
Instead of breaking by line length, break by sentence. Break lists by item in the list and put some long urls on their own lines.
2019-04-10 10:20:35 -04:00
nmorduch
aab0393c3f Update and clarify installation instructions
- Always clarify that the instructions assume a virtual environment
- Add to the tutorial instructions for using venv
- Clarify that Python 3 is required
- Clarify that the tutorial is an alternative to "Getting started" that
assumes less background knowledge
- Remove pip installation instructions because Django only supports
versions of Python that include it
- Make headings in the tutorial instead of an ordered list
  This makes the page easier to scan visually and allows linking to
specific headings.
- Add the warning about Pillow dependencies to the tutorial
- In "Getting started" move Pillow's dependencies to the general
dependencies list
- Make language more welcoming (saying "we just do x" alienates people
who have less familiarity with x")
- Other small text changes
2019-04-10 10:20:24 -04:00
Matt Westcott
d5bc3c92d2 Fetch new translations and update config for Chinese (#3668)
* Fetch new translations from Transifex, update contributors, add new languages with >90% coverage to WAGTAILADMIN_PROVIDED_LANGUAGES
* Update transifex config to download Chinese (Simplified) and Chinese (Traditional) translations as zh_Hans and zh_Hant respectively
* Fix get-translator-credits.py to recognise 'tet' as the locale string for Tetum (which Babel doesn't)
2019-04-08 22:27:18 +01:00
DanAtShenTech
f4ada7cad5 Fix typo. Small grammar changes. 2019-04-08 17:32:54 +01:00
Matt Westcott
12f7ee2f1a Deprecation note for #5184 2019-04-08 16:35:58 +01:00
Andy Chosak
d7bad06fe8 Add documentation of rewrite handlers 2019-04-08 14:31:55 +01:00
Matt Westcott
57b72a8e53 Add consistent whitespace around sortable table headings (#5190)
Labels for sortable headings need whitespace around them in order for the arrow to be correctly positioned. In addition, some headings had the label outside of the sort link - this is now fixed too.
2019-04-04 11:57:24 +01:00
Md. Arifin Ibne Matin
2b2c71a4d9 Support additional custom handler for links in Rich text editor. (#5159) 2019-04-03 20:50:39 +01:00
DanAtShenTech
f4d3025022 Wording fixes to column/row header descriptions
Also small grammar updates.
2019-04-03 20:22:29 +01:00
DanAtShenTech
f4ca13a9b3 Small wording changes 2019-04-03 10:09:12 +01:00
Matt Westcott
f16965442e 2.1 -> 2.2 2019-04-01 20:28:34 +01:00
Matt Westcott
a3283dd7fb Formalise support for Django 2.2 2019-04-01 19:59:04 +01:00
Thibaud Colas
c447f75bd4
Make the page reordering UI easier to find (#5187)
* Update icon-order icon glyph
* Implement new UI for child ordering toggle
* Update documentation for page reordering
2019-03-29 14:38:05 +00:00
Jonny Scholes
4d004ce808 Add filter string character check to jinja2 image template tag 2019-03-29 12:15:17 +00:00
Matt Westcott
a2ba2a7a8a Release note for #5157 2019-03-29 11:58:22 +00:00
LB Johnston
46c024ba06 add name attribute to all derived classes of ActionMenuItem 2019-03-29 11:48:15 +00:00
Kalob Taulien
062ff73665 Add documentation for the ajax_template attribute 2019-03-29 11:25:01 +00:00
Haydn Greatnews
fa5c69ee00 Call specific on parent page and breadcrumbs in page chooser
There was a small bug in the page chooser, where it would display
`page.title` instead of `get_admin_display_title` when loaded on with a
specified parent. This was because the page chooser was falling back to
Page.get_admin_display_title instead of the specific kind
2019-03-29 11:21:06 +00:00
Matt Westcott
3134ffa119 Recommend npm install --no-save when setting up node toolchain (#5161)
Running `npm install` without `--no-save` can introduce spurious changes to package-lock.json due to differences in platform / node version, and these have been known to accidentally sneak into people's PRs. `npm install` without `--no-save` should only be used when actively updating node dependencies in package.json.
2019-03-21 20:41:14 +00: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
kevinhowbrook
1079b7f021 Improve the snippet UI by offering 'Don't delete' actions to the edit form 2019-03-21 13:09:17 +00:00
Matt Westcott
ab986f53ee Revert "Add more readable focus state for buttons"
This reverts commit 768cb2a32f.
2019-03-19 16:40:02 +00:00