{"id":15572869,"url":"https://github.com/fourdigits/wagtail-external-richtext-link","last_synced_at":"2025-04-24T02:11:58.455Z","repository":{"id":178606697,"uuid":"662110311","full_name":"fourdigits/wagtail-external-richtext-link","owner":"fourdigits","description":"Wagtail richtext addon that opens links in a new tab or window","archived":false,"fork":false,"pushed_at":"2024-08-01T08:08:11.000Z","size":48,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T18:49:56.937Z","etag":null,"topics":["cms","python","richtext","wagtail"],"latest_commit_sha":null,"homepage":"https://www.fourdigits.nl/blog/external-links-in-wagtail-rich-text-fields/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fourdigits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-04T11:28:48.000Z","updated_at":"2024-12-02T12:34:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7d3bcaa-5b43-45ec-9002-2ccfa773ae34","html_url":"https://github.com/fourdigits/wagtail-external-richtext-link","commit_stats":null,"previous_names":["fourdigits/wagtail-external-richtext-link"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2Fwagtail-external-richtext-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2Fwagtail-external-richtext-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2Fwagtail-external-richtext-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2Fwagtail-external-richtext-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourdigits","download_url":"https://codeload.github.com/fourdigits/wagtail-external-richtext-link/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546086,"owners_count":21448260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","python","richtext","wagtail"],"created_at":"2024-10-02T18:07:26.815Z","updated_at":"2025-04-24T02:11:58.433Z","avatar_url":"https://github.com/fourdigits.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wagtail-external-richtext-link\n\n[![PyPI - Version](https://img.shields.io/pypi/v/wagtail-external-link-richtext.svg)](https://pypi.org/project/wagtail-external-link-richtext/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/wagtail-external-link-richtext.svg)](https://pypi.org/project/wagtail-external-link-richtext/)\n\n-----\n\nA simple app that gives you the option to add links to the richtext editor in Wagtail that always open in a new tab.\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [License](#license)\n\n## Installation\n\n```console\n$ pip install wagtail-external-link-richtext\n```\n\n## Configuration\n\nAdd `wagtail_external_link` to your `INSTALLED_APPS`:\n\n```python\nINSTALLED_APPS = [\n    # ...\n    'wagtail_external_link',\n    # ...\n]\n```\n\nAdd `\"new_tab_link\"` to your `RICHTEXT_FEATURES` in your settings:\n\n```python\nRICHTEXT_FEATURES = [\n    # ...\n    'new_tab_link',\n    'link', #IMPORTANT IT MUST ALWAYS BE ABOVE `link`\n]\n```\n\n## Usage\n\nWhen you add a `RichTextField` to your model, you will now see a new button called `New tab 🔗` in the richtext editor:\n1. Select the text you want to link or just place the cursor where you want the link to be.\n2. Click the `New tab 🔗` button.\n3. If you didn't select any text, enter some text for the link. This will be the text that is displayed.\n4. Enter the URL you want to link to.\n5. Click `Submit`.\n6. The link will be added to the richtext editor.\n7. Save the page.\n\nCorrect way to render the link in your template:\n\n```django\n{% load wagtailcore_tags %}\n\n{{ page.body|richtext }}\n```\n\n## License\n\n`wagtail-external-richtext-link` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourdigits%2Fwagtail-external-richtext-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourdigits%2Fwagtail-external-richtext-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourdigits%2Fwagtail-external-richtext-link/lists"}