Preserve links when copy-pasting rich text content from Wagtail to other tools (#5054)

pull/5066/head
Thibaud Colas 2019-02-07 00:01:03 +02:00 zatwierdzone przez GitHub
rodzic e77338f1a3
commit 96ec1e0e4e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ Changelog
* Automatic search indexing can now be disabled on a per-model basis via the `search_auto_update` attribute (Karl Hobley)
* Improved diffing of StreamFields when comparing page revisions (Karl Hobley)
* Highlight broken links to pages and missing documents in rich text (Brady Moe)
* Preserve links when copy-pasting rich text content from Wagtail to other tools (Thibaud Colas)
* Fix: Set `SERVER_PORT` to 443 in `Page.dummy_request()` for HTTPS sites (Sergey Fedoseev)
* Fix: Include port number in `Host` header of `Page.dummy_request()` (Sergey Fedoseev)
* Fix: Validation error messages in `InlinePanel` no longer count towards `max_num` when disabling the 'add' button (Todd Dembrey, Thibaud Colas)

Wyświetl plik

@ -84,6 +84,7 @@ class TooltipEntity extends Component {
/* eslint-disable springload/jsx-a11y/interactive-supports-focus */
return (
<a
href={url}
role="button"
// Use onMouseUp to preserve focus in the text even after clicking.
onMouseUp={this.openTooltip}

Wyświetl plik

@ -4,6 +4,7 @@ exports[`TooltipEntity #openTooltip 1`] = `
<a
className="TooltipEntity"
data-draftail-trigger={true}
href="https://www.example.com/"
onMouseUp={[Function]}
role="button"
>
@ -76,6 +77,7 @@ exports[`TooltipEntity works 1`] = `
<a
className="TooltipEntity"
data-draftail-trigger={true}
href="https://www.example.com/"
onMouseUp={[Function]}
role="button"
>

Wyświetl plik

@ -19,6 +19,7 @@ Other features
* Automatic search indexing can now be disabled on a per-model basis via the ``search_auto_update`` attribute (Karl Hobley)
* Improved diffing of StreamFields when comparing page revisions (Karl Hobley)
* Highlight broken links to pages and missing documents in rich text (Brady Moe)
* Preserve links when copy-pasting rich text content from Wagtail to other tools (Thibaud Colas)
Bug fixes