Skip to content
Merged
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
2 changes: 1 addition & 1 deletion antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ asciidoc:
tinymce_live_demo_url: https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js
tinydrive_live_demo_url: https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinydrive/7/tinydrive.min.js
webcomponent_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-webcomponent@2/dist/tinymce-webcomponent.min.js
jquery_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-jquery@2/dist/tinymce-jquery.min.js
jquery_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-jquery/dist/tinymce-jquery.min.js
openai_proxy_url: https://openai.ai-demo-proxy.tiny.cloud/v1/chat/completions
openai_proxy_token: eyJhbGciOiJFUzM4NCJ9.eyJhdWQiOlsiaHR0cHM6Ly9vcGVuYWkuYWktZGVtby1wcm94eS50aW55LmNsb3VkLyJdLCJleHAiOjE3NTEzMjgwMDAsImh0dHBzOi8vb3BlbmFpLmFpLWRlbW8tcHJveHkudGlueS5jbG91ZC9yb2xlIjoicHVibGljLWRlbW8iLCJpc3MiOiJodHRwczovL2FpLWRlbW8tcHJveHkudGlueS5jbG91ZC8iLCJqdGkiOiJmOGFmY2EyNC1mN2FhLTQxMjktYTc2Yy02YThlZDU3YjAyZjYiLCJzdWIiOiJhaS1hc3Npc3RhbnQtZGVtbyJ9.Xu0apHCbxgmRQTeTqrTIDFFhh2CgKeARRXa3mCxSGoCwZqkoQaFRZBCzDo8Xz7DuUa5mW2XHl-HYcYiXJM9ly16d0oY7lJefHBeLlmJEBE1CSttHBkCRWZS8eFLCasL6
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
Expand Down
25 changes: 24 additions & 1 deletion modules/ROOT/partials/integrations/jquery-quick-start.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,33 @@ endif::[]
in the jQuery prefix, and any other settings are defined in the object passed to
the `tinymce` method.
+
ifeval::["{productSource}" == "cloud"]
[source,html]
----
<script>
$('textarea#tiny').tinymce({
height: 500,
api_key: '<your api key>',
/* other settings... */,
});
</script>
----
. Update the `+api_key+` property to include your link:{accountsignup}/[{cloudname} API key].
endif::[]

ifeval::["{productSource}" == "package-manager"]
[source,html]
----
<script>
$('textarea#tiny').tinymce({ height: 500, /* other settings... */ });
$('textarea#tiny').tinymce({
height: 500,
license_key: '<your license key>',
/* other settings... */,
});
</script>
----
. Update the `+license_key+` property and include your xref:license-key.adoc[License Key].
endif::[]

== Example jQuery integration

Expand All @@ -128,6 +149,7 @@ ifeval::["{productSource}" == "package-manager"]
<script>
$('textarea#tiny').tinymce({
height: 500,
license_key: '<your-license-key>',
menubar: false,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
Expand Down Expand Up @@ -169,6 +191,7 @@ ifeval::["{productSource}" == "cloud"]
<script>
$('textarea#tiny').tinymce({
height: 500,
api_key: '<your api key>',
menubar: false,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
Expand Down