wagtail-external-richtext-link
A simple app that gives you the option to add links to the richtext editor in Wagtail that always open in a new tab.
Table of Contents
Installation
$ pip install wagtail-external-link-richtext
Configuration
Add wagtail_external_link to your INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'wagtail_external_link',
# ...
]
Add "new_tab_link" to your RICHTEXT_FEATURES in your settings:
RICHTEXT_FEATURES = [
# ...
'new_tab_link',
'link', #IMPORTANT IT MUST ALWAYS BE ABOVE `link`
]
Usage
When you add a RichTextField to your model, you will now see a new button called New tab 🔗 in the richtext editor:
- Select the text you want to link or just place the cursor where you want the link to be.
- Click the
New tab 🔗button. - If you didn't select any text, enter some text for the link. This will be the text that is displayed.
- Enter the URL you want to link to.
- Click
Submit. - The link will be added to the richtext editor.
- Save the page.
Correct way to render the link in your template:
{% load wagtailcore_tags %}
{{ page.body|richtext }}
License
wagtail-external-richtext-link is distributed under the terms of the MIT license.
Metadata
Release files for wagtail-external-link-richtext 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wagtail_external_link_richtext-1.1.4.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_external_link_richtext-1.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / wagtail_external_link_richtext-1.1.4.tar.gz
| Download URL | wagtail_external_link_richtext-1.1.4.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99e62e84c64e43e18203c43b80cf3bd995e7487f437db0fb411b899237cf72e0
|
|
BLAKE2b-256 checksum How to use checksums |
1b67235b6ec01dde128a1f09a86e886314d96cdf79b8637593c48512a8675ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / wagtail_external_link_richtext-1.1.4-py3-none-any.whl
| Download URL | wagtail_external_link_richtext-1.1.4-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
632418a72eedc0adbb4566804e6939bb0b41a773873995fd348b800ab5d1f6da
|
|
BLAKE2b-256 checksum How to use checksums |
c19a86404547271008bd0f91fb06992a75b9861a74e48e65ea3d6679af9d007e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|