
內容簡介
Perxel Accordion for TinyMCE 是一款為 WordPress 傳統編輯器增添可摺疊內容的外掛,讓使用者能輕鬆插入可摺疊的「顯示更多」區塊,提升文章的可讀性與互動性。
【主要功能】
• 在編輯器工具列新增插入摺疊區塊按鈕
• 直觀的視覺預覽與純文字短碼
• 可存取的前端摺疊區塊
• 每個摺疊區塊可選擇預設展開
• 小型預設樣式表可供主題調整
• 開發者可使用過濾器自訂 HTML 和樣式表
外掛標籤
開發者團隊
② 後台搜尋「Perxel Accordion for TinyMCE」→ 直接安裝(推薦)
原文外掛簡介
The classic WordPress editor has no way to add a collapsible “show more”
section to a post. Perxel Accordion for TinyMCE adds an Insert Accordion button
to the editor toolbar, so an accordion takes a couple of clicks and stays in
your post content as a plain, readable shortcode.
Click the button, fill in a title and the body text, and the editor inserts a
[pxta_accordion] shortcode where your cursor was. In the Visual tab the
accordion is drawn as a live preview you can open and read while you write; in
the Text tab you get the raw shortcode, exactly as typed. On the front end
the shortcode renders an accessible accordion – a heading with a button that
screen readers announce as expanded or collapsed – with a small default
stylesheet and a tiny script, loaded only on pages that contain an accordion.
Each accordion starts collapsed unless you tick Open by default.
The button appears wherever the classic editor does: the post and page editor,
the widget editors, and any Advanced Custom Fields WYSIWYG field whose toolbar
is set to Full. There is nothing to configure – no settings screen and no
options stored in the database.
Key features
An Insert Accordion button in the classic editor toolbar, with a dialog for the title and the body text.
A live preview of each accordion in the Visual tab, and the plain shortcode in the Text tab.
Accessible front-end accordions: the title is a real button inside a heading of your choice, with the open/closed state exposed to screen readers.
An Open by default option per accordion; otherwise it starts collapsed.
A small default stylesheet (arrow indicator, spacing, borders) that your theme can restyle or switch off entirely.
Two filters for developers: pxta_accordion_html to replace the rendered HTML, and pxta_accordion_load_css to stop the default stylesheet from loading.
You can also write the shortcode by hand, which is handy in a template or a
page built from shortcodes:
`
[pxta_accordion title=”What does it cost?”]Nothing at all – it is free.[/pxta_accordion]
`
To wrap the title in a heading or paragraph, add title_tag (one of p,
h1-h6, div):
`
[pxta_accordion title=”What does it cost?” title_tag=”h3″]Nothing at all – it is free.[/pxta_accordion]
`
TinyMCE is a trademark of Tiny Technologies, Inc. This plugin is independent and is not affiliated with, endorsed by or sponsored by Tiny Technologies, Inc.
External services
This plugin does not connect to any external services.
