Skip to content

Commit 414b426

Browse files
committed
Update quick start cloud
1 parent 47921c1 commit 414b426

File tree

4 files changed

+16
-26
lines changed

4 files changed

+16
-26
lines changed

modules/ROOT/pages/cloud-quick-start.adoc

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
1-
= Quick start: {productname} with {cloudname}
1+
= Quick start: {productname} from {cloudname}
22
:navtitle: Quick start: Cloud
33
:description_short: Setup a basic {productname} {productmajorversion} editor using the {cloudname}.
44
:description: Get an instance of {productname} {productmajorversion} up and running using the {cloudname}.
55
:keywords: tinymce, script, textarea
66
:productSource: cloud
77

8-
== Install {productname} using the {cloudname}
98

109
{productname} {productmajorversion} is a powerful and flexible rich text editor that can be embedded in web applications. This quick start covers how to add a {productname} editor to a web page using the {cloudname}.
1110

1211
include::partial$misc/admon-account-creation-and-social-option.adoc[]
1312

1413
== Include the {productname} script
1514

16-
Include the following line of code in the `+<head>+` of a HTML page:
15+
Include the following script tag in the `+<head>+` of a HTML file:
1716

1817
[source,html,subs="attributes+"]
1918
----
2019
<script src="{cdnurl}" referrerpolicy="origin" crossorigin="anonymous"></script>
2120
----
2221

23-
== Initialize {productname} as part of a web form
22+
== Initialize {productname}
2423

2524
include::partial$install/initialize-editor-cloud.adoc[]
2625

27-
Adding this content to an HTML file and opening it in a web browser will load a {productname} editor, such as:
26+
Adding this content to the HTML file and opening it in a web browser will load a {productname} editor, such as:
2827

2928
liveDemo::default[]
3029

31-
== Update the "no-api-key" placeholder with your API key
30+
== Update the "no-api-key" placeholder
3231

33-
To remove the notice:
32+
Update the `+no-api-key+` placeholder in the source script URL (`+<script src=https://.../no-api-key/tinymce/{productmajorversion}/tinymce.min.js+/>`) with your {cloudname} API key, which is created when signing up to the link:{accountsignup}/[{cloudname}].
33+
34+
Providing a valid API key also removes the notice:
3435

3536
[WARNING]
3637
====
3738
**This domain is not registered with {cloudname}. Please see the quick start guide or create an account.**
3839
====
3940

40-
Update the `+no-api-key+` placeholder in the source script (`+<script src=...+`) with your {cloudname} API key, which is created when signing up to the link:{accountsignup}/[{cloudname}].
41-
4241
Signing up for a {cloudname} API key will also provide a trial of the xref:plugins.adoc#premium-plugins[Premium Plugins].
4342

4443
include::partial$install/save-content.adoc[]

modules/ROOT/partials/install/initialize-editor-cloud.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Initialize {productname} {productmajorversion} on any element (or elements) on the web page by passing an object containing a `+selector+` value to `+tinymce.init()+`. The `+selector+` value can be any valid https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors[CSS selector].
1+
Initialize {productname} {productmajorversion} on any element (or elements) on the web page by passing a `+selector+` to `+tinymce.init()+`. The `+selector+` value can be any valid https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors[CSS selector].
22

3-
For example, to replace `+<textarea id="mytextarea">+` with a {productname} {productmajorversion} editor instance, pass the selector `+'#mytextarea'+` to `+tinymce.init()+`:
3+
For example, to initialize a {productname} {productmajorversion} instance at the textarea element, pass the selector `+#mytextarea+` to `+tinymce.init()+`.
44

55
[source,html,subs="attributes+"]
66
----
@@ -11,18 +11,16 @@ For example, to replace `+<textarea id="mytextarea">+` with a {productname} {pro
1111
<meta name="viewport" content="width=device-width, initial-scale=1">
1212
1313
<script src="{cdnurl}" referrerpolicy="origin" crossorigin="anonymous"></script>
14+
</head>
15+
16+
<body>
17+
<h1>{productname} Quick Start Guide</h1>
18+
<textarea id="mytextarea">Hello, World!</textarea>
1419
<script>
1520
tinymce.init({
1621
selector: '#mytextarea'
1722
});
1823
</script>
19-
</head>
20-
21-
<body>
22-
<h1>{productname} Quick Start Guide</h1>
23-
<form method="post">
24-
<textarea id="mytextarea">Hello, World!</textarea>
25-
</form>
2624
</body>
2725
</html>
2826
----

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,5 @@
4343
"nodemon": "^3.1.10",
4444
"npm-run-all": "^4.1.5"
4545
},
46-
"dependencies": {
47-
"tinymce-premium": "^8.3.0"
48-
}
46+
"dependencies": {}
4947
}

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,11 +1874,6 @@ timers-ext@^0.1.7:
18741874
es5-ext "~0.10.46"
18751875
next-tick "1"
18761876

1877-
tinymce-premium@^8.3.0:
1878-
version "8.3.0"
1879-
resolved "https://registry.yarnpkg.com/tinymce-premium/-/tinymce-premium-8.3.0.tgz#d837062bfba4fd6ca79fdad4310be6f9bcc78a3c"
1880-
integrity sha512-h76r8ynq2Y3pSqxJosp5qeDqFgz07jk6/GG1jCKUKg0Dc+HG0kfNpRuhl9au0v/QEcuDLp3495f512B/YfchYQ==
1881-
18821877
to-regex-range@^5.0.1:
18831878
version "5.0.1"
18841879
resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"

0 commit comments

Comments
 (0)