Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions modules/ROOT/examples/live-demos/full-featured/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const fetchApi = import(
// Instead, an alternate method for retrieving the API key should be used.
const openai_api_key = "<INSERT_OPENAI_API_KEY_HERE>";

const useDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
const isSmallScreen = window.matchMedia('(max-width: 1023.5px)').matches;

tinymce.init({
Expand Down Expand Up @@ -111,8 +110,7 @@ tinymce.init({
content_style: '.mymention{ color: gray; }',
contextmenu: 'link image editimage table configurepermanentpen',
a11y_advanced_options: true,
skin: useDarkMode ? 'oxide-dark' : 'oxide',
content_css: useDarkMode ? 'dark' : 'default',
skin: 'oxide-dark',
autocorrect_capitalize: true,
mergetags_list: [
{
Expand Down
4 changes: 1 addition & 3 deletions modules/ROOT/examples/live-demos/full-featured/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
});
};

const useDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
const isSmallScreen = window.matchMedia('(max-width: 1023.5px)').matches;

const ai_request = (request, respondWith) => {
Expand Down Expand Up @@ -523,8 +522,7 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }',
contextmenu: 'link image editimage table spellchecker configurepermanentpen',
a11y_advanced_options: true,
skin: useDarkMode ? 'oxide-dark' : 'oxide',
content_css: useDarkMode ? 'dark' : 'default',
skin: 'oxide-dark',
mentions_selector: '.mymention',
mentions_fetch: mentions_fetch,
mentions_menu_hover: mentions_menu_hover,
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/7.7.0-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ For information on the **Accessibility Checker** plugin, see: xref:a11ychecker.a

{productname} {release-version} also includes the following improvements:

==== Improved visual indication of keyboard focus for a comment annotation when there is an image inside.
=== Improved visual indication of keyboard focus for a comment annotation when there is an image inside.
// #TINY-11596

In previous versions of **Comments**, annotated non-text elements occasionally displayed a double bottom border when selected, leading to a visual inconsistency that appeared buggy and clashed with existing border styles.
Expand Down
29 changes: 26 additions & 3 deletions modules/ROOT/pages/exportpdf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,37 @@ tinymce.init({
selector: 'textarea',
plugins: 'exportpdf',
toolbar: 'exportpdf',
exportpdf_token_provider: () => { // required when using the Export to PDF plugin with Tiny Cloud.
return fetch('http://localhost:3000/jwt', { // specify your token endpoint
method: 'POST',
headers: { 'Content-Type': 'application/json' },
}).then(response => response.json());
},
});
----

[NOTE]
For more infomation on the exportpdf_token_provider option, see xref:exportpdf.adoc#exportpdf-token-provider[exportpdf_token_provider].

[IMPORTANT]
When using the {pluginname} plugin with the {companyname} Cloud service, JWT authentication is required to use the service. For more information on how to set up JWT authentication with {pluginname}, see examples:
====
The {pluginname} plugin **requires** JWT authentication when using the {companyname} Cloud service.

* Configure the `{plugincode}_token_provider` option to specify the endpoint for retrieving a valid JWT token.
* If hosting locally, use the format `+http://localhost:[port]/jwt+`, ensuring the endpoint returns a JSON object containing the token.

For more information on how to set up JWT authentication with {pluginname}, see examples:

* xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[{pluginname} with JWT authentication (Node.js)]
* xref:export-to-pdf-with-jwt-authentication-php.adoc[{pluginname} with JWT authentication (PHP)]
* xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[Export to PDF with JWT authentication (Node.js)]
* xref:export-to-pdf-with-jwt-authentication-php.adoc[Export to PDF with JWT authentication (PHP)]

**Trial period behavior:**

* The {pluginname} plugin runs in evaluation mode and adds a watermark to exported content.
* The `{plugincode}_token_provider` option is "not required" during the trial period.
* If the trial period "expires" or the plugin lacks the necessary entitlement, it becomes _non-functional_.
* Attempting to use JWT authentication during the trial will result in an _error_.
====

== Basic setup using the self-hosted service

Expand Down
30 changes: 29 additions & 1 deletion modules/ROOT/pages/exportword.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,43 @@ tinymce.init({
selector: 'textarea',
plugins: 'exportword',
toolbar: 'exportword',
exportword_token_provider: () => { // required when using the Export to Word plugin with Tiny Cloud.
return fetch('http://localhost:3000/jwt', { // specify your token endpoint
method: 'POST',
headers: { 'Content-Type': 'application/json' },
}).then(response => response.json());
},
});
----

[NOTE]
For more infomation on the exportword_token_provider option, see xref:exportword.adoc#exportword-token-provider[exportword_token_provider]

[IMPORTANT]
When using the {pluginname} plugin with the {companyname} Cloud service, JWT authentication is required to use the service. For more information on how to set up JWT authentication with {pluginname}, see examples:
====
The {pluginname} plugin **requires** JWT authentication when using the {companyname} Cloud service.

* Configure the `{plugincode}_token_provider` option to specify the endpoint for retrieving a valid JWT token.
* If hosting locally, use the format `+http://localhost:[port]/jwt+`, ensuring the endpoint returns a JSON object containing the token.

For more information on how to set up JWT authentication with {pluginname}, see examples:

* xref:export-to-word-with-jwt-authentication-nodejs.adoc[{pluginname} with JWT authentication (Node.js)]
* xref:export-to-word-with-jwt-authentication-php.adoc[{pluginname} with JWT authentication (PHP)]

**Trial period behavior:**

* The {pluginname} plugin runs in evaluation mode and adds a watermark to exported content.
* The `{plugincode}_token_provider` option is "not required" during the trial period.
* If the trial period "expires" or the plugin lacks the necessary entitlement, it becomes _non-functional_.
* Attempting to use JWT authentication during the trial will result in an _error_.
====






== Basic setup using the self-hosted service

To use the self-hosted version of the {pluginname} plugin, you need to set the `exportword_service_url` option to the URL of the service.
Expand Down
25 changes: 24 additions & 1 deletion modules/ROOT/pages/importword.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,38 @@ tinymce.init({
selector: 'textarea',
plugins: 'importword',
toolbar: 'importword',
importword_token_provider: () => { // required when using the Import from Word plugin with Tiny Cloud.
return fetch('http://localhost:3000/jwt', { // specify your token endpoint
method: 'POST',
headers: { 'Content-Type': 'application/json' },
}).then(response => response.json());
},
});
----

[NOTE]
For more infomation on the importword_token_provider option, see xref:importword.adoc#importword-token-provider[importword_token_provider].

[IMPORTANT]
When using the {pluginname} plugin with the {companyname} Cloud service, JWT authentication is required to use the service. For more information on how to set up JWT authentication with {pluginname}, see examples:
====
The {pluginname} plugin **requires** JWT authentication when using the {companyname} Cloud service.

* Configure the `{plugincode}_token_provider` option to specify the endpoint for retrieving a valid JWT token.
* If hosting locally, use the format `+http://localhost:[port]/jwt+`, ensuring the endpoint returns a JSON object containing the token.

For more information on how to set up JWT authentication with {pluginname}, see examples:

* xref:import-from-word-with-jwt-authentication-nodejs.adoc[{pluginname} with JWT authentication (Node.js)]
* xref:import-from-word-with-jwt-authentication-php.adoc[{pluginname} with JWT authentication (PHP)]

**Trial period behavior:**

* The {pluginname} plugin runs in evaluation mode and adds a watermark to exported content.
* The `{plugincode}_token_provider` option is "not required" during the trial period.
* If the trial period "expires" or the plugin lacks the necessary entitlement, it becomes _non-functional_.
* Attempting to use JWT authentication during the trial will result in an _error_.
====

== Basic setup using the self-hosted service

To use the self-hosted version of the {pluginname} plugin, you need to set the `importword_service_url` option to the URL of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ tinymce.init({
selector: 'textarea',
plugins: 'exportpdf',
toolbar: 'exportpdf',
exportpdf_token_provider: () => {
exportpdf_token_provider: () => { // required when using the Export to PDF plugin with Tiny Cloud.
return fetch('http://localhost:3000/jwt', { // specify your token endpoint
method: 'POST',
headers: { 'Content-Type': 'application/json' },
}).then(response => response.json());
},
});
----

[NOTE]
The `exportpdf_token_provider` option is required when using the {companyname} Cloud service. For more information on how to set up JWT authentication with {pluginname}, see examples:

* xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[Export to PDF with JWT authentication (Node.js)]
* xref:export-to-pdf-with-jwt-authentication-php.adoc[Export to PDF with JWT authentication (PHP)]
----
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ tinymce.init({
selector: 'textarea',
plugins: 'exportword',
toolbar: 'exportword',
exportword_token_provider: () => {
exportword_token_provider: () => { // required when using the Export to Word plugin with Tiny Cloud.
return fetch('http://localhost:3000/jwt', { // specify your token endpoint
method: 'POST',
headers: { 'Content-Type': 'application/json' },
}).then(response => response.json());
},
});
----


[NOTE]
The `exportword_token_provider` option is required when using the {companyname} Cloud service. For more information on how to set up JWT authentication with {pluginname}, see examples:

* xref:export-to-word-with-jwt-authentication-nodejs.adoc[Export to Word with JWT authentication (Node.js)]
* xref:export-to-word-with-jwt-authentication-php.adoc[Export to Word with JWT authentication (PHP)]
----
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ tinymce.init({
selector: 'textarea',
plugins: 'importword',
toolbar: 'importword',
importword_token_provider: () => {
importword_token_provider: () => { // required when using the Import from Word plugin with Tiny Cloud.
return fetch('http://localhost:3000/jwt', { // specify your token endpoint
method: 'POST',
headers: { 'Content-Type': 'application/json' },
}).then(response => response.json());
},
});
----

[NOTE]
The `importword_token_provider` option is required when using the {companyname} Cloud service. For more information on how to set up JWT authentication with {pluginname}, see examples:

* xref:import-from-word-with-jwt-authentication-nodejs.adoc[Import to Word with JWT authentication (Node.js)]
* xref:import-from-word-with-jwt-authentication-php.adoc[Import to Word with JWT authentication (PHP)]
----