You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.7 KiB
64 lines
1.7 KiB
= Accordion plugin
|
|
:navtitle: Accordion
|
|
:description: Creates sections that can be expanded or collapsed to show or hide content.
|
|
:description_short: Creates expandable and collapsible sections.
|
|
:keywords: plugin, accordion, collapse, expand, show, reveal, hide.
|
|
:pluginname: Accordion
|
|
:plugincode: accordion
|
|
:plugincategory: opensource
|
|
|
|
The {pluginname} plugin allows for the creation of sections in a document that can be expanded or collapsed to show or hide additional content.
|
|
|
|
== Interactive example
|
|
|
|
liveDemo::{plugincode}[]
|
|
|
|
== Basic setup
|
|
|
|
To add the {pluginname} plugin to the editor, add `{plugincode}` to the `+plugins+` option in the editor configuration.
|
|
|
|
To add the {pluginname} toolbar icon to the {productname} toolbar, add `{plugincode}` to the `+toolbar+` option in the editor configuration.
|
|
|
|
For example:
|
|
|
|
[source,js]
|
|
----
|
|
tinymce.init({
|
|
selector: 'textarea', // change this value according to your HTML
|
|
plugins: 'accordion',
|
|
toolbar: 'accordion',
|
|
});
|
|
----
|
|
|
|
== Options
|
|
|
|
The following configuration options affect the behavior of the {pluginname} plugin.
|
|
|
|
include::partial$configuration/details_initial_state.adoc[][leveloffset=+1]
|
|
|
|
include::partial$configuration/details_serialized_state.adoc[][leveloffset=+1]
|
|
|
|
include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[]
|
|
|
|
include::partial$misc/plugin-menu-item-id-boilerplate.adoc[]
|
|
|
|
== Commands
|
|
|
|
The {pluginname} plugin provides the following {productname} commands.
|
|
|
|
include::partial$commands/{plugincode}-cmds.adoc[]
|
|
|
|
== Events
|
|
|
|
The {pluginname} plugin provides the following events.
|
|
|
|
include::partial$events/{plugincode}-events.adoc[]
|
|
|
|
|
|
////
|
|
== APIs
|
|
|
|
The {{pluginname}} plugin provides the following APIs.
|
|
|
|
include::partial$plugin-apis/{plugincode}-apis.adoc[]
|
|
////
|