Skip to main content

A Draftail extension to add anchor identifiers to rich text

Project description

Wagtail Draftail Anchors

Adds the ability to add and edit anchors in the Draftail rich text editor, as well as automatically adding (slug-form) anchor ids to all headings.

Installation

Install using pip:

pip install wagtail-draftail-anchors

Add 'wagtail_draftail_anchors' to INSTALLED_APPS below wagtail.admin.

Add 'anchor-identifier' to the features of any rich text field where you have overridden the default feature list. The feature must be added before any heading('h1',...,'h6') feature:

body = RichTextField(features=['anchor-identifier', 'h2', 'h3', 'bold', 'italic', 'link'])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wagtail_draftail_anchors-0.4.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_draftail_anchors-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: wagtail_draftail_anchors-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.51.0 importlib-metadata/4.8.3 keyring/21.4.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for wagtail_draftail_anchors-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82067d61835e9527d6e7831df2f0d787448ed0797d7bad193561e1946796e3c9
MD5 5f03046e3f319844aa0e7cb818aa099b
BLAKE2b-256 264b4882456f7600b848cb6c32d871db276aaa42151e8d9b8be5476130eddc79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page