Skip to content

Commit 12f7d17

Browse files
DOC-3183: Updated jQuery integration quick start documentation. (#3693)
* DOC-3183: Updated jQuery integration quick start documentation. * DOC-3183: Include license_key and api_key in the example and instructions --------- Co-authored-by: Ben Tran <[email protected]>
1 parent 295b597 commit 12f7d17

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ asciidoc:
1313
tinymce_live_demo_url: https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js
1414
tinydrive_live_demo_url: https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinydrive/7/tinydrive.min.js
1515
webcomponent_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-webcomponent@2/dist/tinymce-webcomponent.min.js
16-
jquery_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-jquery@2/dist/tinymce-jquery.min.js
16+
jquery_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-jquery/dist/tinymce-jquery.min.js
1717
openai_proxy_url: https://openai.ai-demo-proxy.tiny.cloud/v1/chat/completions
1818
openai_proxy_token: eyJhbGciOiJFUzM4NCJ9.eyJhdWQiOlsiaHR0cHM6Ly9vcGVuYWkuYWktZGVtby1wcm94eS50aW55LmNsb3VkLyJdLCJleHAiOjE3NTEzMjgwMDAsImh0dHBzOi8vb3BlbmFpLmFpLWRlbW8tcHJveHkudGlueS5jbG91ZC9yb2xlIjoicHVibGljLWRlbW8iLCJpc3MiOiJodHRwczovL2FpLWRlbW8tcHJveHkudGlueS5jbG91ZC8iLCJqdGkiOiJmOGFmY2EyNC1mN2FhLTQxMjktYTc2Yy02YThlZDU3YjAyZjYiLCJzdWIiOiJhaS1hc3Npc3RhbnQtZGVtbyJ9.Xu0apHCbxgmRQTeTqrTIDFFhh2CgKeARRXa3mCxSGoCwZqkoQaFRZBCzDo8Xz7DuUa5mW2XHl-HYcYiXJM9ly16d0oY7lJefHBeLlmJEBE1CSttHBkCRWZS8eFLCasL6
1919
default_meta_keywords: tinymce, documentation, docs, plugins, customizable skins, configuration, examples, html, php, java, javascript, image editor, inline editor, distraction-free editor, classic editor, wysiwyg

modules/ROOT/partials/integrations/jquery-quick-start.adoc

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,33 @@ endif::[]
9999
in the jQuery prefix, and any other settings are defined in the object passed to
100100
the `tinymce` method.
101101
+
102+
ifeval::["{productSource}" == "cloud"]
103+
[source,html]
104+
----
105+
<script>
106+
$('textarea#tiny').tinymce({
107+
height: 500,
108+
api_key: '<your api key>',
109+
/* other settings... */,
110+
});
111+
</script>
112+
----
113+
. Update the `+api_key+` property to include your link:{accountsignup}/[{cloudname} API key].
114+
endif::[]
115+
116+
ifeval::["{productSource}" == "package-manager"]
102117
[source,html]
103118
----
104119
<script>
105-
$('textarea#tiny').tinymce({ height: 500, /* other settings... */ });
120+
$('textarea#tiny').tinymce({
121+
height: 500,
122+
license_key: '<your license key>',
123+
/* other settings... */,
124+
});
106125
</script>
107126
----
127+
. Update the `+license_key+` property and include your xref:license-key.adoc[License Key].
128+
endif::[]
108129

109130
== Example jQuery integration
110131

@@ -128,6 +149,7 @@ ifeval::["{productSource}" == "package-manager"]
128149
<script>
129150
$('textarea#tiny').tinymce({
130151
height: 500,
152+
license_key: '<your-license-key>',
131153
menubar: false,
132154
plugins: [
133155
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
@@ -169,6 +191,7 @@ ifeval::["{productSource}" == "cloud"]
169191
<script>
170192
$('textarea#tiny').tinymce({
171193
height: 500,
194+
api_key: '<your api key>',
172195
menubar: false,
173196
plugins: [
174197
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',

0 commit comments

Comments
 (0)