You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
== Premium icon packs from `+tinymce-premium+` (NPM)
76
+
77
+
The `+tinymce-premium+` NPM package ships all premium icon packs in `+tinymce-premium/icons/+`. Choose one of the following patterns depending on how {productname} is deployed:
78
+
79
+
*Bundling (recommended for modern build tools)*
80
+
81
+
* Import the required icon pack so the module bundler adds it to the application bundle. For example:
* After bundling, set `+icons: 'material'+` (or any imported icon pack) in the editor configuration.
90
+
91
+
*Non-bundling with file layering*
92
+
93
+
* When hosting directly from `+node_modules+`, copy `+node_modules/tinymce-premium/icons/+` into `+node_modules/tinymce/icons/+` as part of the build or deployment step (for example, in a `+postinstall+` script).
94
+
* Once copied, premium icon packs live beside the core files, so setting `+icons+` works without extra configuration.
95
+
96
+
*Non-bundling with `+icons_url+`*
97
+
98
+
* Leave the premium icon packs in `+node_modules/tinymce-premium/icons/+` and configure xref:editor-icons.adoc#icons_url[`+icons_url+`] to point at the required icon pack file.
99
+
* This approach avoids moving files and is useful when the `+node_modules+` directory is web-accessible (or when copying only the specific icon pack to a public folder).
Premium language packs are available from ZIP downloads or the `+tinymce-premium+` NPM package. When using the NPM package, import language packs from `+tinymce-premium/langs/+` instead of `+tinymce/langs/+`.
26
+
25
27
The following table shows examples of the syntax used to bundle the following example localization file:
26
28
27
29
....
@@ -33,13 +35,20 @@ The following table shows examples of the syntax used to bundle the following ex
For complete information on using premium language packs from the NPM package, including non-bundling approaches, see: xref:ui-localization.adoc#premium-language-packs-npm[Providing premium language packs from `+tinymce-premium+`].
The `+tinymce-premium+` NPM package ships all premium skins in `+tinymce-premium/skins/+`. Choose one of the following patterns depending on how {productname} is deployed:
74
+
75
+
*Bundling (recommended for modern build tools)*
76
+
77
+
* Import the required skin files so the module bundler adds them to the application bundle. For example:
78
+
+
79
+
[source,js]
80
+
----
81
+
import 'tinymce-premium/skins/ui/oxide/skin.css';
82
+
import contentUiSkinCss from 'tinymce-premium/skins/ui/oxide/content.css';
83
+
// ... other TinyMCE imports
84
+
----
85
+
* After bundling, set `+skin: false+` and `+content_css: false+` in the editor configuration, then use `+content_style+` to inject the bundled CSS.
86
+
87
+
*Non-bundling with file layering*
88
+
89
+
* When hosting directly from `+node_modules+`, copy `+node_modules/tinymce-premium/skins/+` into `+node_modules/tinymce/skins/+` as part of the build or deployment step (for example, in a `+postinstall+` script).
90
+
* Once copied, premium skins live beside the core files, so setting `+skin+` works without extra configuration.
91
+
92
+
*Non-bundling with `+skin_url+`*
93
+
94
+
* Leave the premium skins in `+node_modules/tinymce-premium/skins/+` and configure xref:editor-skin.adoc#skin_url[`+skin_url+`] to point at the required skin directory.
95
+
* This approach avoids moving files and is useful when the `+node_modules+` directory is web-accessible (or when copying only the specific skin to a public folder).
96
+
97
+
Document the chosen approach in deployment scripts to keep upgrades predictable.
* For {productname} 8.3, the `+tinymce-premium+` package is only published to the NPM registry. Other package manager registries (Packagist/Composer, NuGet etc.) may be considered for future releases.
68
-
* Yarn can also install packages from the NPM registry, so `+yarn add tinymce-premium@^8.3+` will work.
69
-
* The `+tinymce-premium+` package version aligns with the `+tinymce+` package version. **Always** use compatible versions of both packages (e.g., both at 8.3.0 or later).
65
+
The `+tinymce-premium+` package is available for {productname} 8.3 onwards and is currently only published to the NPM registry (Yarn can also install from NPM). The package version must align with the `+tinymce+` package version—always use compatible versions of both packages (e.g., both at 8.3.0 or later).
Copy file name to clipboardExpand all lines: modules/ROOT/partials/configuration/icons_url.adoc
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,4 +111,23 @@ tinymce.init({
111
111
});
112
112
----
113
113
114
+
=== Example: loading premium icons from `+tinymce-premium+` (NPM)
115
+
116
+
When installing the `+tinymce-premium+` NPM package, premium icon packs are stored in `+node_modules/tinymce-premium/icons/+`. Configure `+icons_url+` to point at the desired icon pack file. For example:
* Ensure the `+node_modules+` directory (or a copy of the icon pack file) is accessible to the browser. Many projects copy the required icon pack into a public folder (such as `+/public/icons/material/icons.js+`) during their build step and update `+icons_url+` accordingly.
130
+
* Combine this with the approaches listed in xref:bundling-icons.adoc#premium-icon-packs-npm[Premium icon packs from `+tinymce-premium+`] to match the deployment strategy.
Copy file name to clipboardExpand all lines: modules/ROOT/partials/configuration/language.adoc
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,40 @@ tinymce.init({
32
32
[[using-the-premium-language-packs]]
33
33
=== Using the premium language packs
34
34
35
-
The following professionally localized language packs are provided to paid {cloudname} and premium self-hosted deployments. To use these language packs, set the `+language+` option to the corresponding language code in RFC5646 format. No additional configuration is required.
35
+
The following professionally localized language packs are provided to paid {cloudname} and premium self-hosted deployments. To use these language packs, set the `+language+` option to the corresponding language code in RFC5646 format.
36
+
37
+
For {cloudname} and ZIP-based deployments, no additional configuration is required. When using the `+tinymce-premium+` NPM package, see xref:ui-localization.adoc#premium-language-packs-npm[Providing premium language packs from `+tinymce-premium+`] for configuration options.
38
+
39
+
The following table lists the available premium language packs:
==== Providing premium language packs from `+tinymce-premium+` (NPM)
45
+
46
+
The `+tinymce-premium+` NPM package ships all paid translations in `+tinymce-premium/langs/+`. Choose one of the following patterns depending on how {productname} is deployed:
47
+
48
+
*Bundling (recommended for modern build tools)*
49
+
50
+
* Import the required language files so the module bundler adds them to the application bundle. For example:
51
+
+
52
+
[source,js]
53
+
----
54
+
import 'tinymce/langs/en_GB';
55
+
import 'tinymce-premium/langs/fi';
56
+
// ... other TinyMCE imports
57
+
----
58
+
* After bundling, set `+language: 'fi'+` (or any imported locale) and no extra HTTP requests are required.
59
+
60
+
*Non-bundling with file layering*
61
+
62
+
* When hosting directly from `+node_modules+`, copy `+node_modules/tinymce-premium/langs/+` into `+node_modules/tinymce/langs/+` as part of the build or deployment step (for example, in a `+postinstall+` script).
63
+
* Once copied, premium language packs live beside the core files, so setting `+language+` works without extra configuration.
64
+
65
+
*Non-bundling with `+language_url+`*
66
+
67
+
* Leave the premium packs in `+node_modules/tinymce-premium/langs/+` and configure xref:ui-localization.adoc#language_url[`+language_url+`] to point at the required file.
68
+
* This approach avoids moving files and is useful when the `+node_modules+` directory is web-accessible (or when copying only the specific file to a public folder).
Copy file name to clipboardExpand all lines: modules/ROOT/partials/configuration/language_url.adoc
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,29 @@ Also, the `+language+` option must also be set and must be set to the name of th
16
16
----
17
17
tinymce.init({
18
18
selector: 'textarea', // change this value according to your HTML
19
-
language_url: '/path/to/language/pack/fi.js', // path from the root of your web application — / — to the language pack(s)
19
+
language_url: '/<path_to_language_pack>/fi.js', // path from the root of your web application — / — to the language pack(s)
20
20
language: 'fi' // the name of the language pack file
21
21
});
22
22
----
23
23
24
24
You can find and download languages link:{gettiny}/language-packages/[here].
25
+
26
+
=== Example: loading premium languages from `+tinymce-premium+` (NPM)
27
+
28
+
When installing the `+tinymce-premium+` NPM package, each paid translation is stored in `+node_modules/tinymce-premium/langs/+`. Configure `+language_url+` to point at the desired file.
* Ensure the `+node_modules+` directory (or a copy of the language file) is accessible to the browser. Many projects copy the required file into a public folder (such as `+/public/langs/pt_BR.js+`) during their build step and update `+language_url+` accordingly.
43
+
* Combine this with the approaches listed in xref:ui-localization.adoc#premium-language-packs-npm[Providing premium language packs from `+tinymce-premium+`] to match the deployment strategy.
Copy file name to clipboardExpand all lines: modules/ROOT/partials/configuration/skin_url.adoc
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,22 @@ tinymce.init({
14
14
skin_url: '/css/my{prodnamecode}skin'
15
15
});
16
16
----
17
+
18
+
=== Example: loading premium skins from `+tinymce-premium+` (NPM)
19
+
20
+
When installing the `+tinymce-premium+` NPM package, premium skins are stored in `+node_modules/tinymce-premium/skins/+`. Configure `+skin_url+` to point at the desired skin directory. For example:
* Ensure the `+node_modules+` directory (or a copy of the skin directory) is accessible to the browser. Many projects copy the required skin into a public folder (such as `+/public/skins/ui/oxide+`) during their build step and update `+skin_url+` accordingly.
34
+
* Combine this with the approaches listed in xref:bundling-skins.adoc#premium-skins-npm[Premium skins from `+tinymce-premium+`] to match the deployment strategy.
0 commit comments