Commit cd7b78d
authored
[5.2] TinyMCE Accordion (#43577)
* [5.2] Cleanup of return types for phpstan (#43350)
* Cleanup of return types
* Return nothing instead of an empty string
* Update OverridesModel.php
* [5.2] TinyMCE Accordion
Since Joomla 5.0 we have shipped a version of tinyMCE that includes a plugin called accordion. However we never exposed it to our plugin so it was not available to use.
This PR remedies that.
New installs will see the accordion icon on the toolbar with the list icons
For existing installs you will need to EITHER drag the icon into the toolbar in the plugin configuration OR if you havent changed the toolbar you can use the clear and the the use advanced preset buttons.
Technically tinymce have misnamed the the plugin as it should not be confused with other accordion functionality such as the js based solution that can be enabled with bootstrap.
This plugin implements the native html details/summary disclosure element which requires no javascript and is accessible out of the box.
To test
As this requires a js change either apply the pr and run `nmp ci` or use one of the prebuilt packages
If it is a new install then the icon will now be able in the toolbar. If it is an upgrade then you will need to use the tinymce plugin editor to add it (as described above)
* cs1 parent 08fa3b9 commit cd7b78d
File tree
3 files changed
+3
-1
lines changed- build/media_source/plg_editors_tinymce/js
- plugins/editors/tinymce/src/PluginTraits
3 files changed
+3
-1
lines changedLines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments