wagtail-external-link-richtext


Namewagtail-external-link-richtext JSON
Version 1.1.2 PyPI version JSON
download
home_page
SummaryA feature for the richtext fields in Wagtail
upload_time2023-07-05 12:23:34
maintainer
docs_urlNone
author
requires_python>=3.8
licenseCopyright 2023 Four Digits Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords richtext external link wagtail newtab django
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # wagtail-external-richtext-link

[![PyPI - Version](https://img.shields.io/pypi/v/wagtail-external-link-richtext.svg)](https://pypi.org/project/wagtail-external-link-richtext/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/wagtail-external-link-richtext.svg)](https://pypi.org/project/wagtail-external-link-richtext/)

-----

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](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [License](#license)

## Installation

```console
$ pip install wagtail-external-link-richtext
```

## Configuration

Add `wagtail_external_link` to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    # ...
    'wagtail_external_link',
    # ...
]
```

Add `"new_tab_link"` to your `RICHTEXT_FEATURES` in your settings:

```python
RICHTEXT_FEATURES = [
    # ...
    'new_tab_link',
    # ...
]
```

## Usage

When you add a `RichTextField` to your model, you will now see a new button called `New tab 🔗` in the richtext editor:
1. Select the text you want to link or just place the cursor where you want the link to be.
2. Click the `New tab 🔗` button.
3. If you didn't select any text, enter some text for the link. This will be the text that is displayed.
4. Enter the URL you want to link to.
5. Click `Submit`.
6. The link will be added to the richtext editor.
7. Save the page.

Correct way to render the link in your template:

```django
{% load wagtailcore_tags %}

{{ page.body|richtext }}
```

## License

`wagtail-external-richtext-link` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "wagtail-external-link-richtext",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "richtext,external,link,wagtail,newtab,django",
    "author": "",
    "author_email": "Ruben Hesselink <ruben@fourdigits.nl>",
    "download_url": "https://files.pythonhosted.org/packages/ca/81/6118bbca702ff7c6bc3588b0757eb1589da76067b1abda6e67c94e0c5979/wagtail-external-link-richtext-1.1.2.tar.gz",
    "platform": null,
    "description": "# 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    # ...\n]\n```\n\n## Usage\n\nWhen you add a `RichTextField` to your model, you will now see a new button called `New tab \ud83d\udd17` 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 \ud83d\udd17` 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",
    "bugtrack_url": null,
    "license": "Copyright 2023 Four Digits  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A feature for the richtext fields in Wagtail",
    "version": "1.1.2",
    "project_urls": {
        "Homepage": "https://github.com/fourdigits/wagtail-external-richtext-link"
    },
    "split_keywords": [
        "richtext",
        "external",
        "link",
        "wagtail",
        "newtab",
        "django"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "03ed7a3c53e76c1807cd2fb650a16c884156332dbf6b29e15071254d3a44e2b1",
                "md5": "3402cae349230826b28c0b47f081b489",
                "sha256": "e75220310d89f30f0ac9094c46ea0ce26c6c79566f3085199340b22060592b5b"
            },
            "downloads": -1,
            "filename": "wagtail_external_link_richtext-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3402cae349230826b28c0b47f081b489",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5376,
            "upload_time": "2023-07-05T12:23:32",
            "upload_time_iso_8601": "2023-07-05T12:23:32.411679Z",
            "url": "https://files.pythonhosted.org/packages/03/ed/7a3c53e76c1807cd2fb650a16c884156332dbf6b29e15071254d3a44e2b1/wagtail_external_link_richtext-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca816118bbca702ff7c6bc3588b0757eb1589da76067b1abda6e67c94e0c5979",
                "md5": "77d1a0eb01a7ebacd5fc7ec5f0d2f355",
                "sha256": "c3f8bd26bec20243176ba323e416fda430bdd49cfd17709f7a571487a96037f9"
            },
            "downloads": -1,
            "filename": "wagtail-external-link-richtext-1.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "77d1a0eb01a7ebacd5fc7ec5f0d2f355",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8149,
            "upload_time": "2023-07-05T12:23:34",
            "upload_time_iso_8601": "2023-07-05T12:23:34.046409Z",
            "url": "https://files.pythonhosted.org/packages/ca/81/6118bbca702ff7c6bc3588b0757eb1589da76067b1abda6e67c94e0c5979/wagtail-external-link-richtext-1.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-05 12:23:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fourdigits",
    "github_project": "wagtail-external-richtext-link",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "wagtail-external-link-richtext"
}
        
Elapsed time: 0.08918s