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
Currently, the Docker images are only supported on x86-64 (also known as AMD64) architecture processors.
27
+
23
28
+
24
29
Replace `<VERSION>` with `latest` or the specific version number.
25
30
@@ -63,22 +68,30 @@ This configuration file requires at least the following information:
63
68
64
69
* `allowed-origins`: Specifies the domains allowed to communicate with server-side editor features. This is **mandatory** for all server-side components.
65
70
66
-
By default, the {pluginname} plugin comes with Hunspell dictionaries for link:https://www.tiny.cloud/docs/tinymce/latest/introduction-to-tiny-spellchecker/#supported-languages[supported languages]. For additional configurations, the service supports the following options:
71
+
By default, the {pluginname} plugin comes with Hunspell dictionaries for link:https://www.tiny.cloud/docs/tinymce/latest/introduction-to-tiny-spellchecker/#supported-languages[supported languages]. For additional configurations, the service supports the following options in the `application.conf` file:
67
72
68
-
==== Configure Custom Dictionaries
73
+
* `custom-dictionaries-path`: Sets the path to where the file or directory is mounted in the container. For more information on how to set up custom dictionaries, refer to link:https://www.tiny.cloud/docs/tinymce/latest/custom-dictionaries-for-tiny-spellchecker/[Adding custom dictionaries].
74
+
* `dynamic-custom-dictionaries`: When set to true, the {pluginname} service periodically checks the dictionary files in `custom-dictionaries-path` for changes and updates the custom dictionaries at runtime without requiring a service restart. The default value is `false`.
69
75
70
-
To add custom dictionaries, create a folder on your machine and add the dictionary files. The custom dictionaries must conform to specific rules described in link:https://www.tiny.cloud/docs/tinymce/latest/custom-dictionaries-for-tiny-spellchecker/#creating-custom-dictionary-files[Adding custom dictionaries]. In the `application.conf` file, the `spelling` setting can be configured with the following parameters:
76
+
[NOTE]
77
+
Enabling the `dynamic-custom-dictionaries` option introduces some performance overhead, which may result in a wait time for the custom dictionaries to load.
71
78
72
-
* `custom-dictionaries-path`: Takes `<HOST_PATH_TO_CUSTOM_DICT_FOLDER>` as its value. Upon running the container, the specified folder is mapped to the target folder inside the container.
73
-
* `dynamic-custom-dictionaries`: When set to true, the {pluginname} service periodically checks the dictionary files in `<HOST_PATH_TO_CUSTOM_DICT_FOLDER>` for changes and updates the custom dictionaries at runtime without requiring a service restart. Enabling this option introduces some performance overhead, which should be considered. The default value is `false`.
79
+
=== Run the Docker Container
74
80
75
-
==== Configure Extra Hunspell Dictionaries
81
+
The Docker container can also be run with `docker compose`. In this example, the following directory structure is assumed:
76
82
77
-
The default Hunspell dictionaries can also be replaced or extended. To do this, create a folder on your machine to store the Hunspell dictionary files. In the `application.conf` file, specify the following in the `spelling` setting:
83
+
[source,sh]
84
+
----
85
+
spelling-service/
86
+
└── resources/
87
+
├── custom-dictionaries
88
+
└── hunspell-dictionaries
89
+
└── application.conf
90
+
└── docker-compose.yaml
78
91
79
-
* `hunspell-dictionaries-path`: Takes `<HOST_PATH_TO_HUNSPELL_DICT_FOLDER>` as its value. Upon running the container, the specified folder is mapped to the target folder inside the container.
92
+
----
80
93
81
-
This is an example `application.conf` file with the basic configurations:
94
+
Here is an example of the `application.conf` file with the basic configurations:
82
95
83
96
[source, conf]
84
97
----
@@ -99,12 +112,11 @@ ephox {
99
112
}
100
113
----
101
114
102
-
=== Launch the Docker Container
103
-
104
-
Once the application configuration file is ready, proceed with the Docker Compose setup to configure and run the service.
105
-
106
115
. Create the `docker-compose.yaml` file:
107
116
117
+
+
118
+
Here is an example of how to set up the file given the above directory structure and `application.conf` file:
Ensure the `target` path in the `volumes` option matches the `custom-dictionaries-path` and `hunspell-dictionaries-path` in the `application.conf` file.
148
+
133
149
. Run the service (within the same directory where `docker-compose.yaml` was placed):
134
150
135
151
+
@@ -228,7 +244,10 @@ To do this, configure the link:https://www.tiny.cloud/docs/tinymce/latest/introd
228
244
[source, js]
229
245
----
230
246
tinymce.init({
231
-
…,
247
+
selector: 'textarea#spellchecker', // change this value according to your HTML
248
+
plugins: 'code tinymcespellchecker link',
249
+
toolbar: 'spellchecker language spellcheckdialog',
Copy file name to clipboardExpand all lines: modules/ROOT/partials/docker/spelling-service/spelling-service-overview.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
@@ -5,6 +5,6 @@ The On-Premises version of the link:https://www.tiny.cloud/tinymce/features/spel
5
5
6
6
The only requirement to run these services On-Premises is a container runtime or orchestration tool e.g. Docker, Kubernetes, Podman.
7
7
8
-
To get started, contact link:https://www.tiny.cloud/contact/[{companyname} Support] to enable the service. A username and password will be provided to access the {companyname} Cloud Docker registry and pull the Docker image.
8
+
A valid access token is required to access the {companyname} Cloud Docker registry and pull the Docker image. Contact link:https://www.tiny.cloud/contact/[{companyname} Support] to request the access token.
0 commit comments