@@ -28,34 +28,31 @@ For Plone 6.1, TinyMCE has been upgraded from version 5 to 7.
28
28
29
29
### Enable the TinyMCE accordion plugin
30
30
31
- Go to the controlpanel to manage TinyMCE settings
31
+ 1 . Go to the {guilabel}` Site Setup > General > TinyMCE ` control panel to manage TinyMCE settings.
32
+ 1 . Under the {guilabel}` Plugins and Toolbar ` tab, check {guilabel}` accordion ` to enable the accordion plugin.
33
+ 1 . Under the same tab, add a menu entry ` accordion ` for TinyMCE in the control panel by editing the ` items ` key as shown.
32
34
33
- Enable the Plugin in the controlpanel
35
+ ``` json
36
+ {
37
+ "insert" : {
38
+ "title" : " Insert" ,
39
+ "items" : " link media | template hr | accordion"
40
+ },
41
+ }
42
+ ```
34
43
35
- Add a menu entry ` accordion ` for TinyMCE in the controlpanel
44
+ 1 . Click the {guilabel}`Save` button to save your settings.
45
+ 1 . In the {guilabel}`Security > HTML filtering` control panel, add two new tags to {guilabel}`Valid tags`.
36
46
37
- ``` {code-block} json
38
- {
39
- "insert": {
40
- "title": "Insert",
41
- "items": "link media | template hr | accordion"
42
- },
43
- }
44
- ```
45
-
46
- Check your settings in the HTML filter controlpanel
47
-
48
- add two new tags to ` valid tags `
47
+ - `summary`
48
+ - `details`
49
49
50
- - ` summary `
51
- - ` details `
50
+ 1 . Also in the {guilabel}`Security > HTML filtering` control panel, add a new attribute to {guilabel}`Custom attributes`.
52
51
53
- add a new attribute to ` custom_attributes `
52
+ - `open `
54
53
55
- - ` open `
54
+ 1 . For a transform to valid markup of the Bootstrap 5 accordion, use an output filter.
56
55
57
- for a transform to valid bootstrap5 accordion markup use an outputfilter
58
-
59
- ``` {seealso}
60
- - [Addon collective.outputfilters.tinymceaccordion](https://github.com/collective/collective.outputfilters.tinymceaccordion)
61
- ```
56
+ ```{seealso}
57
+ - [Addon collective.outputfilters.tinymceaccordion](https://github.com/collective/collective.outputfilters.tinymceaccordion)
58
+ ```
0 commit comments