-
Copy the
abbr
directory toassets/tinymce4/plugins
. -
Add a new tinyMCE configuration (e.g.
tinyAbbr.php
) file tosystem/config/
(e.g.system/config/tinyAbbr.php
). -
Enable the abbreviation plugin in your tinyMCE configuration you just created in step 2 by adding
abbr
to the plugins list:plugins: "autosave charmap code fullscreen image link lists paste searchreplace tabfocus table template visualblocks abbr",
-
To make sure this configuration is loaded, you have to adjust the corresponding DCA setting. If you want to enable this configuration for all tinyMCE usages in the backend you can adjust your
system/config/dcaconfig.php
as follows:
foreach ($GLOBALS['TL_DCA'] as $table => $config) {
foreach ($config['fields'] as $field => $fieldConfig) {
if (isset($fieldConfig['eval']['rte'])) {
$GLOBALS['TL_DCA'][$table]['fields'][$field]['eval']['rte'] = 'tinyAbbr';
}
}
}