Skip to content

Commit d99a9b0

Browse files
committed
DOC-3215: Docs changes for new onboarding feature.
1 parent 4e8bdce commit d99a9b0

21 files changed

+95
-30
lines changed
613 KB
Loading
229 KB
Loading
775 KB
Loading

modules/ROOT/pages/7.8.0-release-notes.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,6 @@ tinymce.init({
257257
</p>
258258
----
259259

260-
// === New `onboarding` option
261-
// // #TINY-11931
262-
263-
// {productname} {release-version} introduces a new `+onboarding+` option to enhance the developer experience during the 14-day trial period. This option controls the display of a cloud promotion banner highlighting paid features available during the trial. The banner is automatically hidden when the trial ends or when the editor is correctly configured, ensuring a smoother and less intrusive setup experience.
264-
265-
// For more information, see xref:promotions.adoc#onboarding[onboarding].
266-
267-
268260
[[bug-fixes]]
269261
== Bug fixes
270262

modules/ROOT/pages/7.9.0-release-notes.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ Previously, {productname} did not offer a separate `disc` styling option for uno
161161
</ul>
162162
----
163163

164+
=== New `onboarding` option
165+
// #TINY-11931
166+
167+
{productname} {release-version} introduces a new `+onboarding+` option to enhance the developer experience during the 14-day trial period. This option controls the display of a cloud promotion banner highlighting paid features available during the trial. The banner is automatically hidden when the trial ends or when the editor is correctly configured, ensuring a smoother and less intrusive setup experience.
168+
169+
For more information, see xref:promotions.adoc#onboarding[onboarding].
170+
164171
[[changes]]
165172
== Changes
166173

modules/ROOT/pages/changelog.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ NOTE: This is the {productname} Community version changelog. For information abo
99
=== Added
1010
* Added new `disc` style option for unordered lists.
1111
// #TINY-12015
12+
* New `onboarding` option.
13+
// #TINY-11931
1214

1315
=== Improved
1416
* The resize cursor now points in the correct direction for each resize mode. Patch contributed by link:https://github.com/daniloff200[daniloff200].
@@ -49,8 +51,6 @@ NOTE: This is the {productname} Community version changelog. For information abo
4951
// #TINY-11748
5052
* New `extended_mathml_attributes` and `extended_mathml_elements` options.
5153
// #TINY-11756
52-
* New `onboarding` option.
53-
// #TINY-11931
5454

5555
=== Improved
5656
* Focus outline was misaligned with comment card border on saving an edit.

modules/ROOT/pages/cloud-troubleshooting.adoc

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ NOTE: The wording of the notifications shown here may differ from the actual not
1515
[[A-valid-API-key-is-required-to-continue-using-TinyMCE.-Please-alert-the-admin-to-check-the-current-API-key]]
1616
=== "A valid API key is required to continue using {productname}. **Please alert the admin** to check the current API key. xref:invalid-api-key.adoc[Click here to learn more.]"
1717

18-
==== Cause "No API Key"
18+
==== Cause "no-api-key"
1919

2020
This notification is *only shown* when either:
2121

22-
* An `+apiKey+` is not provided in the script tag.
23-
* `+no-api-key+` is provided as the API key.
22+
23+
image:onboarding/onboarding-no-api-key-notification.png[no-api-key-notificaiton-banner, width=800, height=auto]
24+
25+
* An `+apiKey+` is not provided in the script tag, which triggers the **"Finish setting up"** dialog.
26+
* When `+no-api-key+` is provided as the API key inside the script tag.
2427

2528
For example:
2629

@@ -29,6 +32,8 @@ For example:
2932
<script src="{cdnurl}" referrerpolicy="origin"></script>
3033
----
3134

35+
In this case, the editor will be in a **read-only** state, and the user will see a **"Finish setting up"** dialog prompting them to add a valid API key, configure their domain, and explore premium features.
36+
3237
==== Solution
3338

3439
Update the `+src+` URL to include your (website or application developer's) {cloudname} API Key. Your API key should replace the string `+no-api-key+`.
@@ -66,6 +71,63 @@ NOTE: Visit our xref:invalid-api-key.adoc[Invalid API key] page for more informa
6671

6772
'''
6873

74+
[[trial-banner-exploration]]
75+
== Trial Banner - Explore Features (Valid Trial API Key)
76+
77+
=== "Try out paid features! Explore all of the trial benefits including Premium plugins."
78+
79+
==== Cause
80+
81+
This banner appears when the API key being used is associated with a trial account. The editor is fully functional but includes a banner promoting premium features such as `PowerPaste`, `Export to Word`, and `Templates`.
82+
83+
84+
image::onboarding/onboarding-trial-explore-features.png[trial-explore-features-notification-banner, width=400, height=auto]
85+
86+
==== Solution
87+
88+
To disable this banner:
89+
90+
Set the `+onboarding+` option to `+false+` in your {productname} configuration:
91+
92+
[source,javascript]
93+
----
94+
tinymce.init({
95+
selector: 'textarea',
96+
onboarding: false, // Disables trial banner
97+
plugins: 'lists link image table',
98+
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | bullist numlist | link image',
99+
});
100+
----
101+
102+
Alternatively, upgrading your API key to a paid plan will remove the trial messages.
103+
104+
105+
[[empty-api-key]]
106+
== Empty API Key
107+
108+
=== "A valid API key is required to continue using {productname}. Please alert the admin to check the current API key."
109+
110+
==== Cause
111+
112+
This message appears if the API key portion of the `+<script>+` URL is empty, such as:
113+
114+
115+
image:onboarding/onboarding-no-api-key-notification.png[no-api-key-notificaiton-banner, width=800, height=auto]
116+
117+
118+
[source,html]
119+
----
120+
<script src="https://cdn.staging.tiny.cloud/1//tinymce/{productmajorversion}/tinymce.min.js" referrerpolicy="origin"></script>
121+
----
122+
123+
In this case, the resolved API key is effectively empty, resulting in a `read-only` editor state and the "A valid API key is required to continue using TinyMCE. Please alert the admin to check the current API key. Click here to learn more." message.
124+
125+
==== Solution
126+
127+
Ensure the API key is correctly included in the `+<script>+` URL, without any missing or empty segments.
128+
129+
''''
130+
69131
[[domain-not-registered]]
70132
== Domain Not Registered
71133

modules/ROOT/pages/export-to-pdf-with-jwt-authentication-nodejs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Inside the `public` folder where you created the `index.html` file add the HTML
2929
<head>
3030
<title>TinyMCE with Export to PDF</title>
3131
<script
32-
src="https://cdn.tiny.cloud/1/YOUR-API-KEY/tinymce/7/tinymce.min.js"
32+
src="https://cdn.tiny.cloud/1/no-api-key/tinymce/7/tinymce.min.js"
3333
referrerpolicy="origin">
3434
</script>
3535
<script>

modules/ROOT/pages/export-to-pdf-with-jwt-authentication-php.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Inside the `public` folder where you created the `index.html` file add the HTML
2828
<head>
2929
<title>TinyMCE with PDF Export</title>
3030
<script
31-
src="https://cdn.tiny.cloud/1/YOUR-API-KEY/tinymce/7/tinymce.min.js"
31+
src="https://cdn.tiny.cloud/1/no-api-key/tinymce/7/tinymce.min.js"
3232
referrerpolicy="origin">
3333
</script>
3434
<script>

modules/ROOT/pages/export-to-word-with-jwt-authentication-nodejs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Inside the `public` folder where you created the `index.html` file add the HTML
2929
<head>
3030
<title>TinyMCE with Export to Word</title>
3131
<script
32-
src="https://cdn.tiny.cloud/1/YOUR-API-KEY/tinymce/7/tinymce.min.js"
32+
src="https://cdn.tiny.cloud/1/no-api-key/tinymce/7/tinymce.min.js"
3333
referrerpolicy="origin">
3434
</script>
3535
<script>

0 commit comments

Comments
 (0)