Skip to content

Commit aa563f4

Browse files
committed
version 5.1.0
1 parent 13d8c7d commit aa563f4

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 5.1.0 - 2025-03-21
4+
5+
### Added
6+
- Add support for [CKEditor](https://plugins.craftcms.com/ckeditor).
7+
8+
### Deprecated
9+
- Deprecate [Redactor](https://plugins.craftcms.com/redactor) support.
10+
311
## 5.0.0 - 2024-05-13
412

513
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center"><img src="https://verbb.imgix.net/plugins/footnotes/footnotes-icon.svg" width="100" height="100" alt="Footnotes icon"></p>
22
<h1 align="center">Footnotes for Craft CMS</h1>
33

4-
Footnotes is a Craft CMS plugin to add a footnote button to Redactor fields.
4+
Footnotes is a Craft CMS plugin to add a footnote button to [CKEditor](https://plugins.craftcms.com/ckeditor) fields.
55

66
## Documentation
77
Visit the [Footnotes Plugin page](https://verbb.io/craft-plugins/footnotes) for all documentation, guides, pricing and developer resources.

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "verbb/footnotes",
3-
"description": "Adds a footnotes feature to Redactor fields and Twig templates.",
3+
"description": "Adds a footnotes feature to CKEditor fields and Twig templates.",
44
"type": "craft-plugin",
5-
"version": "5.0.0",
5+
"version": "5.1.0",
66
"keywords": [
77
"craft",
88
"cms",
99
"craftcms",
1010
"craft-plugin",
1111
"redactor",
12+
"ckeditor",
1213
"footnotes"
1314
],
1415
"support": {

docs/feature-tour/usage.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
# Usage
2-
Firstly, you'll need to add the Footnotes plugin to your Redactor config. These are located at `config/redactor/*.json`. Add a `footnotebutton` value to the `plugins` array in the config.
2+
Once Footnotes has been installed, in the Craft CMS control panel, navigate to any CKEditor field in your Craft settings (Settings > Fields).
33

4-
```json
5-
{
6-
"buttons": ["format", "bold", "italic"],
7-
"plugins": ["source", "fullscreen", "footnotebutton"]
8-
}
9-
```
10-
11-
With this in place, a new button for adding footnotes should appear in Redactor fields (for the Redactor fields that use this config).
4+
For the **CKEditor Config** setting, either create a new config, or edit an existing one. You'll see a button with the Footnotes icon (an asterisk) as an available button to add to your toolbar. Drag and drop it to the appropriate position in your toolbar.
125

136
## Render your content
14-
When rendering the Redactor field containing footnotes, you'll need to use the `footnotes` Twig filter.
7+
When rendering the CKEditor field containing footnotes, you'll need to use the `footnotes` Twig filter.
158

169
```twig
17-
{{ entry.myRedactorHandle | footnotes }}
10+
{{ entry.myContentField | footnotes }}
1811
```
1912

2013
## Render footnotes
@@ -61,5 +54,5 @@ From here, you might want to add a link that jumps readers back to their positio
6154
You can also include a range of options to assist with rendering:
6255

6356
```twig
64-
{{ entry.myRedactorHandle | footnotes({ anchorAttributes: { class: 'some-class' }, superscriptAttributes: { class: 'another-class' } }) }}
57+
{{ entry.myContentField | footnotes({ anchorAttributes: { class: 'some-class' }, superscriptAttributes: { class: 'another-class' } }) }}
6558
```

0 commit comments

Comments
 (0)