-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
61 lines (41 loc) · 1.6 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
=== Frontity Slot Block ===
Contributors: Luis Herranz, David Arenas
Tags: block
Tested up to: 5.7.0
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Insert a Frontity Slot in the block editor (aka Gutenberg).
== Description ==
This plugin adds a new block to the block editor called _Frontity Slot_, that inserts a Frontity Slot directly in the content.
![Frontity Slot Block](assets/screenshot-1.png)
It requires the _Slot Block_ processor, which is exported in the `@frontity/html2react` package:
```js
import slotBlock from "@frontity/html2react/processors/slot-block";
export default {
state: {
// ...
},
actions: {
// ...
},
libraries: {
html2react: {
processors: [slotBlock],
},
},
};
```
[![Frontity Slot Block Demo](assets/loom-demo.png)](https://www.loom.com/share/d0a0d91e6f5c47b08a2d3da3eaf32629)
This Frontity feature is discussed at https://community.frontity.org/t/frontity-slot-block/4534. Feel free to join and participate.
== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/frontity-slot` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
== Frequently Asked Questions ==
= What is the benefit of using this block instead of just an html2react processor? =
Both approaches work, but using Frontity Slots is more explicit, clean, and should be easier to maintain.
== Screenshots ==
1. The Frontity Slot blocks.
== Changelog ==
= 1.0.0 =
* Initial release.