Alexander Bias
Original maintainer
This is a simple Moodle filter which creates tabs in textfields.
First, activate the filter_tabs plugin in Site Administration -> Plugins -> Filters -> Manage filters
To create tabs in textfields where the filter is activated, simply use the following syntax:
{%:Tab title}Tab text{%}
Example
The following placeholders in a textfield:
{%:First tab}Some text{%}
{%:Second tab}Another text{%}
will produce this tab group:
+-------------+------------------+
| First tab | Second tab |
+---------------------------------+
| Some text |
| |
+---------------------------------+
Bootstrap 5, 4, 2 and YUI theme styles are supported.
Important note about HTML content insertion
If you want to include HTML content in the tab body, you must use the editor in "code mode", because if you use "normal" mode directly, the HTML will look exactly as it is entered, and not the desired result.