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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/editor-skin.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
====
9
9
*Skins vs Content CSS:*
10
10
11
-
Skins change both the look of {productname}'s UI and the editable area. To change only the look of the editable area, use xref:add-css-options.adoc#content_css[`+content_css+`].
11
+
Skins change both the look of {productname}'s UI and the editable area (when the skin includes both `+skin.css+` and `+content.css+` files). The `+content_css+` option only styles the editable area. If both `+skin+` and `+content_css+` are used, `+content_css+` will override the skin's content styles, allowing mixing and matching of UI and content styles.
12
12
====
13
13
14
14
The default skin does not require any configuration, though it must be imported when bundling for deployment:
The {prem_skins_icons} lets you quickly give {productname} a new look. Just choose one of our pre-made skins and icon packs.
6
+
NOTE: Enhanced skins are only available with a link:{pricingpage}/[paid {productname} subscription].
7
7
8
-
== How to use a Enhanced skins
8
+
The {prem_skins_icons} provide pre-made skins and icon packs to quickly customize {productname}'s appearance. These premium options allow integrators to match {productname} to their application's design system.
9
9
10
-
NOTE: Enhanced skins are only available with a link:{pricingpage}/[paid {productname} subscriptions].
10
+
== Available premium skins
11
11
12
-
Use the xref:editor-skin.adoc#skin[skin] option, in combination with the xref:add-css-options.adoc#content_css[content_css] option and the values listed below.
12
+
The following premium skins are available for {productname}:
13
13
14
-
Available values for xref:editor-skin.adoc#skin[skins]:
14
+
* `material-classic`
15
+
* `material-outline`
16
+
* `bootstrap`
17
+
* `fabric`
18
+
* `fluent`
19
+
* `borderless`
20
+
* `small`
21
+
* `jam`
22
+
* `naked`
23
+
* `outside`
24
+
* `snow`
15
25
16
-
* material-classic
17
-
* material-outline
18
-
* bootstrap
19
-
* fabric
20
-
* fluent
21
-
* borderless
22
-
* small
23
-
* jam
24
-
* naked
25
-
* outside
26
-
* snow
26
+
For information on configuring skins, see: xref:editor-skin.adoc[Skin options].
27
27
28
-
Available values for xref:add-css-options.adoc#content_css[content_css]:
28
+
Some skins include both UI styles (`+skin.css+`) and content styles (`+content.css+`). When a skin includes both files, using the `+skin+` option will apply both UI and content styles. The `+content_css+` option is not required in this case.
29
29
30
-
* material-classic
31
-
* material-outline
32
-
* fabric
33
-
* fluent
30
+
For styling only the editable area (without changing the UI), separate content-only CSS files are available. These files are located in the content folder and may differ from the content styles included with skins. Available content-only options:
34
31
35
-
=== Example: using a Enhanced skin
32
+
* `material-classic`
33
+
* `material-outline`
34
+
* `fabric`
35
+
* `fluent`
36
+
37
+
Use the xref:add-css-options.adoc#content_css[`+content_css+`] option to apply content-only styles.
38
+
39
+
Skins can include both UI styles (`+skin.css+`) and content styles (`+content.css+`). Using the `+skin+` option applies both automatically when both files are present.
40
+
41
+
For styling only the editable area (without changing the UI), separate content-only CSS files are available. These files are located in the content folder and may differ from the content styles included with skins. Available content-only options:
42
+
43
+
* `material-classic`
44
+
* `material-outline`
45
+
* `fabric`
46
+
* `fluent`
47
+
48
+
Use the xref:add-css-options.adoc#content_css[`+content_css+`] option to apply content-only styles.
49
+
50
+
=== Example: using a premium skin
36
51
37
52
[source,js]
38
53
----
39
54
tinymce.init({
40
-
selector: 'textarea', // change this value according to your HTML
41
-
skin: 'fabric', // Name of the skin
42
-
content_css: 'fabric' // Name of the content skin
55
+
selector: 'textarea',
56
+
skin: 'fabric' // Applies both UI and content styles (if both files are included)
43
57
});
44
58
----
45
59
46
-
== How to use an icon pack
60
+
[NOTE]
61
+
====
62
+
*Mixing skins and content_css:*
63
+
64
+
The `+content_css+` option is not required when using skins that include content styles. However, if both `+skin+` and `+content_css+` are specified, `+content_css+` will override the skin's content styles, allowing mixing and matching of UI and content styles.
65
+
====
66
+
67
+
== Available premium icon packs
47
68
48
-
Use the xref:editor-icons.adoc#icons[icons] option with any of the values listed below.
69
+
The following premium icon packs are available for {productname}:
49
70
50
-
Available values for xref:editor-icons.adoc#icons[icon] packs:
71
+
* `bootstrap`
72
+
* `material`
73
+
* `small`
74
+
* `jam`
75
+
* `thin`
51
76
52
-
* bootstrap
53
-
* material
54
-
* small
55
-
* jam
56
-
* thin
77
+
For information on configuring icon packs, see: xref:editor-icons.adoc[Icon options].
57
78
58
79
=== Example: using a premium icon pack
59
80
60
81
[source,js]
61
82
----
62
83
tinymce.init({
63
-
selector: 'textarea', // change this value according to your HTML
84
+
selector: 'textarea',
64
85
icons: 'material' // Name of icon pack
65
86
});
66
87
----
67
88
68
-
For information on using the `+icons+` option, see: xref:editor-icons.adoc#icons[User interface options - `+icons+`].
89
+
[[icon-pack-compatibility-matrix]]
90
+
== Icon pack compatibility matrix
69
91
70
-
=== Icon pack compatibility matrix
71
-
72
-
Due to different toolbar button sizes, some icon packs fit better with some skins. Use the below matrix as a guide.
92
+
Due to different toolbar button sizes, some icon packs fit better with some skins. Use the compatibility matrix below as a guide when selecting combinations.
Copy file name to clipboardExpand all lines: modules/ROOT/partials/configuration/language_url.adoc
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,29 @@
3
3
4
4
When using the xref:ui-localization.adoc#language[`+language+`] option to set the user interface language you can place language pack(s) in a directory other than the default. If you do this, however, you must add the `language_url` option to your configuration and set this option to a path pointing to the language file(s) location.
5
5
6
-
We recommend the path URL be relative to the web application’s root. That is, begin with the absolute path reference character `+/+`. Avoid relying on application context for safe path resolution of language packs.
6
+
We recommend the path URL be relative to the web application's root. That is, begin with the absolute path reference character `+/+`. Avoid relying on application context for safe path resolution of language packs.
7
7
8
-
Also, the `+language+` option must also be set and must be set to the name of the language pack file being loaded.
8
+
[IMPORTANT]
9
+
====
10
+
*Understanding `language_url` and `language` Together:*
11
+
12
+
When using `language_url`, you must also specify the `language` option:
13
+
14
+
* `language_url` - Tells {productname} *where* to find the language pack file.
15
+
* `language` - Tells {productname} *which* language pack to use from the loaded file.
16
+
17
+
*Example:*
18
+
19
+
[source,js]
20
+
----
21
+
tinymce.init({
22
+
selector: 'textarea',
23
+
language_url: '/path/to/language_pack/fi.js', // Where to find it
There are two options for changing the language of the {productname} user interfaces: `+language+` and `+language_url+`.
1
+
There are two options for changing the language of the {productname} user interfaces: `+language+` and `+language_url+`.
2
2
3
3
* Use the `+language+` option when language packs are in the default location (for {cloudname} deployments, ZIP bundles, or when using NPM packages with bundling or file layering).
4
-
* Use the `+language_url+` option to specify a custom path to language packs, which is useful for community translations, custom language packs, or when using NPM packages without bundling.
4
+
* Use the `+language_url+` option to specify a custom path to language packs, which is useful for community translations, custom language packs, or when using NPM packages without bundling. When using `+language_url+`, the `+language+` option is also required.
Copy file name to clipboardExpand all lines: modules/ROOT/partials/misc/skin-or-skin_url.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,12 @@ To load skins from another location, integrators must specify that location usin
17
17
====
18
18
*Understanding the skins folder structure:*
19
19
20
-
The **skins** folder in the `+tinymce-premium+` NPM package and ZIP bundles contains both a **ui** folder and a **content** folder. The files within the **content** folder are for use with the xref:add-css-options.adoc#content_css[`+content_css+`] option, and only affect the editable area. They do not work with the `+skin+` or `+skin_url+` options.
20
+
The **skins** folder in the `+tinymce-premium+` NPM package and ZIP bundles contains both a **ui** folder and a **content** folder. Skins in the **ui** folder can include both `+skin.css+` (for UI styling) and `+content.css+` (for editable area styling). When a skin includes both files, using the `+skin+` option will apply both UI and content styles. The files in the **content** folder can also be used independently with the xref:add-css-options.adoc#content_css[`+content_css+`] option to style only the editable area.
21
21
====
22
22
23
23
[NOTE]
24
24
====
25
-
*Content CSS Override:*
25
+
*Using skins and content_css together:*
26
26
27
-
`+content_css+` will override any content styles set by UI skins.
27
+
Skins that include both `+skin.css+` and `+content.css+` files will style both the UI and the editable area. The `+content_css+` option is not required when using such skins. However, if both `+skin+` and `+content_css+` are specified, `+content_css+` will override the skin's content styles, allowing mixing and matching of UI and content styles.
0 commit comments