Content appearance options
This option sets the initial state of the editor visual aids for bookmarks (
anchor) and tables with a border width of
0. If the border of a table is set to
0, then TinyMCE adds a dotted line around the table by default.
When set to
false, the visual aids will be disabled when the editor loads. The
visualaid toolbar button and menu item allow users to toggle the visibility of the visual aids.
This option enables you to configure a custom class to be added to anchors with names since these are invisible by default.
This option enables you to configure a custom class to be added to tables that have a border set to
0. This class is used to add dotted borders to tables that would otherwise be invisible for the user.
To enable visual aids for "hidden" characters, see: The Visual Characters plugin
To enable outlines for block elements, see: The Visual Blocks plugin.
TinyMCE 6.2 and later includes the
promotion option. It controls the presentation or otherwise of a Tiny-specific promotion button.
true in Community self-hosted instances; otherwise
See Premium upgrade promotion defaults for details.
selector: "textarea", // change this value according to your HTML
The Upgrade promotion appears in the unused corner of the TinyMCE menu bar. Consequently it does not appear if the menu bar is disabled.
|The distribution-specific defaults are not fixed. Someone running TinyMCE as part of a Premium plan can turn this option on. And someone running the Community distribution of TinyMCE as a self-hosted instance can turn this option off.
|This feature is only available for TinyMCE 6.4 and later.
highlight_on_focus option adds a blue outline to an instantiated TinyMCE editor when that editor is made the input focus. When using the
oxide-dark skin, the outline is white.
This allows users to clearly see when the editor is in focus, or which editor has focus if more than one TinyMCE instance is available.
If a custom skin is being used, two variables can be updated to match the
highlight_on_focus option’s appearance with the custom skin.
The two rules and their default values are:
This is entirely optional. If the default values are not changed, the
highlight_on_focus option works with a custom skin exactly as it does with TinyMCE default skins.
|This feature is only available for TinyMCE 6.5 and later.
This option determines whether the iframe is initialized synchronously or asynchronously.
When disabled, the editor is initialized asynchronously using
srcdoc. This can, occasionally, cause the editor to flicker during initialization.
When enabled, the editor is initialized synchronously, using
document.write. This can reduce flickering.
Flickering can still occur during synchronous initialization, however, such as when loading the content css.
selector: 'textarea', // change this value according to your HTML
When TinyMCE is running in inline mode (ie, when
inline: true is set), setting
init_content_sync: true has no effect.