-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…3027) * DOC-1020: add option to page that configures whether additional plugin/theme languages are loaded when bundling. * DOC-1020: updates to language_load options and admons. * DOC-1020: copy edits and improvements. * Update modules/ROOT/partials/configuration/language_load.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update changelog.md * Update modules/ROOT/partials/configuration/language_load.adoc Co-authored-by: Mitchell Crompton <[email protected]> * Update modules/ROOT/partials/configuration/language_load.adoc Co-authored-by: Mitchell Crompton <[email protected]> --------- Co-authored-by: Mitchell Crompton <[email protected]>
- Loading branch information
1 parent
0623f5d
commit a2f6074
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[[language_load]] | ||
== `+language_load+` | ||
|
||
This option determines whether additional plugin or theme languages are loaded during {productname} editor initialization. By default, plugins which have support for languages other than English will automatically load the additional language packs. | ||
|
||
*Type:* `+boolean+` | ||
|
||
*Default value:* `+true+` | ||
|
||
* When the `+language_load+` option is set to `+true+`, any available language packs can be loaded and used by {productname} and plugins that support multiple-languages. | ||
* When set to `+false+`, only explicitly configured language packs will load. | ||
|
||
[IMPORTANT] | ||
Setting `+language_load+` option to `+false+` is not recommended unless loading local language packs. | ||
|
||
=== Example: using `+language_load+` | ||
|
||
[source,js] | ||
---- | ||
tinymce.init({ | ||
selector: 'textarea', // Change this value according to your HTML | ||
language_load: true, // Disables the automatic loading of additional plugin and theme language files. | ||
}); | ||
---- | ||
|
||
[TIP] | ||
When bundling, it is advisable for plugins that support multiple languages to load the additional language packs locally, and to set this option to `+false+`. This will ensure that all required languages are available for the editor, and that no additional language packs will be retrieved by the plugins. | ||
|
||
You can find and download languages link:{gettiny}/language-packages/[here]. |