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

61 Commits

Author SHA1 Message Date
LB Johnston
6d0659333d fix spelling - behaviour vs behavior
- documentation should be using the British english spelling
- most other spelling is `behaviour` so this aligns with the majority
2022-06-02 07:56:05 +10:00
Storm Heg
24ef0e62e6 Fix documentation indentation
Fix code block indentation in tutorial.rst

Prevent it from being displayed as a quote.

Fix indentation in pages.rst

Fix indentation in indexing.rst

Fix indentation in searching.rst

Fix indentation in backends.rst

Fix indentation in renditions.rst

Fix indentation in custom_image_model.rst

Fix indentation in feature_detection.rst

Fix indentation in image_serve_view.rst

Fix indentation in custom_document_model.rst

Fix indentation in i18n.rst

Fix indentation in privacy.rst

Fix indentation in page_editing_interface.rst

Fix indentation in rich_text_internals.rst

Fix indentation in extending_hallo.rst

Fix indentation in configuration.rst

Fix indentation in usage.rst

Fix indentation in theory.rst

Fix indentation in model_reference.rst

Fix indentation in queryset_reference.rst

Configure editors to indent .rst files with 2 spaces

In order for the documentation to be styled correctly, the generator
depends on indentation. Too much indentation can result in the content
being wrapped in a quote block, which looks bad.

Fix indentation in sitemaps.rst

Fix indentation in frontendcache.rst

Fix indentation in routablepage.rst

Fix indentation in table_block.rst

Fix routablepage.rst autodocs disppearing

Fix indentation in table_block.rst

Fix indentation in redirects.rst

Fix indentation in table_documentation-modes.rst

Fix indentation in browser_issues.rst

Fix indentation in release_process.rst

Fix indentation of release notes

One more indent fix in the release notes

Fix indentation warnings

Fix warning about undefined label in docs

Error during `make html`:

  wagtail/docs/releases/1.7.rst:25: WARNING: undefined label: jpeg_image_quality
2021-02-26 09:17:00 +00:00
Karl Hobley
6e5f89adf2 General spelling fixes 2020-10-03 14:43:03 +01:00
Matt Westcott
c5457755ef Fill in release date for 2.5 2019-04-24 16:21:43 +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
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
Matt Westcott
12f7ee2f1a Deprecation note for #5184 2019-04-08 16:35:58 +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
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
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
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
Chris Adams
768cb2a32f Add more readable focus state for buttons 2019-03-19 17:36:05 +10:00
Tom Usher
0f8a55a6ce Pass validators to FieldBlocks (#5148) 2019-03-15 18:42:08 +01:00
Wesley van Lee
c831d434ab Added an option to the page model to be able to define the amount of subpages underneath a specific parent page 2019-03-15 18:14:05 +01:00
kevinhowbrook
339b6752af Fix AttributeError on Cloudflare cache invalidation (#5150) 2019-03-15 15:40:16 +01:00
kevinhowbrook
7d583a52b9 When two date fields are in the same form, chrome ignores multiple autocomplete=off values. (#5136) 2019-03-15 10:58:17 +01:00
Md. Arifin Ibne Matin
edfd9afc1d Add more built-in rich text formats (#5141) 2019-03-15 01:39:18 +01:00
Wesley van Lee
a700e1352c Preserve non breaking white spaces in rich text processing. Fix #4996 (#5142)
Prevent the initial loading of the rich-text field to replace non-breaking white spaces with normal spaces
2019-03-14 17:31:10 +01:00
Matt Westcott
3e1e67021e Add release note for #5138 to 2.5 docs 2019-03-14 14:43:28 +01:00
Damian
ef7bd7989e add form media to user add/edit forms (#5146) 2019-03-14 14:42:26 +01:00
Matt Westcott
23a89774ad Deprecation note for #5128 2019-03-14 12:11:16 +01:00
Esperk
9f2e4033ea Abort unfinished ajax before firing new ajax call. Fix #4594 (#5137)
To prevent showing old results always cancel unfinished query requests before firing a new one
2019-03-13 15:44:12 +01:00
Arthur Holzner
6f6f9b8e46 Added fallback to pageurl (#4603) 2019-03-13 12:17:13 +01:00
Thijs Kramer
fdbd7ca2d3 only append model type to button when there is one target model (#5094) 2019-03-13 11:35:40 +01:00
Andy Babic
77a8e3b7c0 Do not allow copies of pages that exceed their models' max_count
Update PagePermissionTester.can_move_to() to call on the page class's 'can_create_at()' method, and respond accordingly

Add a SingletonPageViaMaxCount to the test.json fixture for use in page permission tests

Add some tests for PagePermissionTester.can_copy_to()

Create a SingletonPageViaMaxCount in setUp() instead of adding to the fixture
2019-03-13 07:57:25 +10:00
LB Johnston
fc21729a24 add docs with instructions on how to generate urls for modeladmin 2019-03-13 07:41:34 +10:00
Mani
87bbc31d88 Add a setting to apply limit on number of tags that can be added to any tagged model. 2019-03-10 20:48:33 +10:00
Matt Westcott
3fe442ff4d Add Learn Wagtail to third-party tutorials 2019-03-10 15:57:52 +10:00
Tiago Requeijo
4f5b117250 Fix for emails missing the HTML messages. 2019-03-10 15:38:19 +10:00
kevinhowbrook
1248279114 Specify a larger length as the default of 200 isn't always enough (#5114) 2019-03-07 11:18:40 +00:00
Thomas Kremmel
4e8f197a9d allow panels & edit_handler to be defined on ModelAdmin (#4900) 2019-03-06 12:26:20 +00:00
Matt Westcott
53cea8bc04 Release note for #4653 2019-03-06 11:24:44 +00:00
Asanka Lihiniyagoda
74218a7e43 Set data-focal-point-* values to be '' instead of 'None' when they are empty. 2019-03-03 10:06:16 +10:00
Matt Westcott
8b7efc0b16 Output current language code in HTML header (#5091)
Fixes #5051
2019-03-01 11:37:44 +00:00
Matt Westcott
61e1e4c2f9 Add 'wagtail_update_index' as an alias for the 'update_index' command (#5009)
Fixes #2447
2019-03-01 11:01:41 +00:00
LB Johnston
fa2a0c2d02 add ability for page.copy to copy ParentalManyToMany field relations 2019-03-01 07:11:28 +10:00
Sergey Fedoseev
233bb17789 Add missing collection column in wagtaildocs/documents/list.html (#5110) 2019-02-27 19:28:40 +00:00
Gassan Gousseinov
d37ce9f699 routablepageurl returns urls only for default site on multisite installation (#5102) 2019-02-27 19:21:26 +00:00
Karl Hobley
04861bc37d Release note / contributor for #5097 2019-02-23 14:15:07 +00:00
Matt Westcott
4a5036839b Respect CSS precedence rules in HTMLRuleset (#4926)
Fixes #4527
2019-02-13 14:50:20 +00: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