|
Important
|
The BBCode plugin (bbcode) was deprecated with the release of TinyMCE 5.9. For details, see the BBCode plugin deprecation notice. The BBCode plugin will be removed in TinyMCE 6.0.
|
This plugin makes it possible to edit BBCode in a WYSIWYG style by converting tags like [b] into <strong> and then back, when user submits the content.
|
Note
|
You will need to sacrifice quite a lot of {productname}'s functionality to use this plugin properly, since BBCode format doesn’t support the whole HTML specification. |
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'bbcode'
});This option allows you to specify the BBCode dialect. We only support PunBB. Supported tags are listed in the table below:
| BBCode | Description | HTML equivalent |
|---|---|---|
|
Bold text |
|
|
Italicize text |
|
|
Underline text |
|
|
Link |
|
|
Image |
|
|
Color text |
|
|
Code |
|
|
Quote |
|
|
Newline |
|
When using PunBB dialect, codeStyle and quoteStyle will be converted to [code] and [quote] correspondingly.
Type: String
Default Value: "punbb"