wagtail-block-clipboard
Copy a StreamField block in the Wagtail admin and paste it in another field or on another page.
Wagtail can duplicate a block in place, but not move one elsewhere (wagtail/wagtail#8339). This package adds:
- a Copy button on every block, at any depth, list items included;
- a Paste button next to every "+" button, shown while there is something to paste. It lists the last four copied blocks, with the page they come from.
Where a block can be pasted
Wherever the same block can be created by hand:
- in a
StreamBlock: a child with the same type name and the same Python class; - in a
ListBlock: a child of the same Python class.
There is no restriction on page type, field or depth. A copied block that does not fit the place is still listed, with the reason it cannot be added there.
Differences in configuration (page types of a chooser, rich text features, a field that became required) are not checked on paste: the block is pasted and the validation on save reports them on the block, as it would for a block filled by hand. Fields the target block does not have are left out, and named in a message.
Copied blocks are kept in the browser (localStorage), nothing is sent to the server. They
are cleared when the login page is shown.
Install
INSTALLED_APPS = [
# ...
"wagtail_block_clipboard",
]
No migration, no setting.
How it hooks into Wagtail
Wagtail has no extension point for block actions, so block-clipboard.js wraps two methods
of the StreamBlock and ListBlock classes Wagtail exposes on window.wagtailStreamField,
and apps.py adds the Python class path of each block to what the admin receives
(meta.blockClass). Both rely on Wagtail internals, hence the pin on a single Wagtail
feature release: check the admin after an upgrade.
Tests
node --test tests/block-clipboard.test.js
Metadata
Release files for wagtail-block-clipboard 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail_block_clipboard-0.1.0.tar.gz | 12.2 kB | With provenance | Details for wagtail_block_clipboard-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_block_clipboard-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wagtail_block_clipboard-0.1.0-py3-none-any.whl |
Total release size: 28.1 kB
Release files / wagtail_block_clipboard-0.1.0.tar.gz
| Download URL | wagtail_block_clipboard-0.1.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3299e64dcffa19bb9f8af27e8dedeefde3dea9e881984b2a03ea1a7597449328
|
|
BLAKE2b-256 checksum How to use checksums |
0a4621efd2e2a4818d9de87d3451698020c7b88f632a17a7cd9577f3d8117f9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / wagtail_block_clipboard-0.1.0-py3-none-any.whl
| Download URL | wagtail_block_clipboard-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5674741ed1c73b9ef5fef7df1a3b4b6b7d49b601547711741fbdd8ac553d8b1
|
|
BLAKE2b-256 checksum How to use checksums |
6fdba815c3dc1739a42f73801144b3fdef6bf20926c3ca5fd9842c29b00cc898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for wagtail-block-clipboard 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wagtail_block_clipboard-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.