parent
adcbf8bd2e
commit
3fb799b51e
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# wagtail-draftail-snippet
|
||||
|
||||
Wagtail has support for adding numerous types of links to `RichTextBlock` content, but there is not a way to tie a link to an arbitrary `snippet` model currently. `wagtail-draftail-snippet` provides a way to create either an `a href` element for a specific `snippet` model based on a template that can be provided, or a completely free-form piece of HTML for a snippet.
|
||||
Wagtail has support for adding numerous types of links to `RichText` content, but there is not a way to tie a link to an arbitrary `snippet` model currently. `wagtail-draftail-snippet` provides a way to create either an `a href` element for a specific `snippet` model based on a template that can be provided, or a completely free-form piece of HTML for a snippet.
|
||||
|
||||
The project provides the following draftail (Wagtail Richtext editor) features:
|
||||
|
||||
|
@ -9,7 +9,7 @@ The project provides the following draftail (Wagtail Richtext editor) features:
|
|||
|
||||
Unsure whether you want to use a snippet link or embed? Embeds have complete flexibility, but 1) break the flow of text in the Draftail richtext editor and 2) can't be used to link arbitrary text. If you want to render a link to a snippet model inside of body copy, then you probably want to use the snippet link. For anything else, the embed can be used.
|
||||
|
||||
![Demo of wagtail-draftail-snippet plugin](https://i.imgur.com/pyX25hg.gif)
|
||||
![Demo of wagtail-draftail-snippet plugin](draftail-snippet-demo.gif)
|
||||
|
||||
## Install
|
||||
|
||||
|
|
BIN
draftail-snippet-demo.gif
Normal file
BIN
draftail-snippet-demo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 MiB |
Reference in a new issue