Skip to content

Commit e3ef77b

Browse files
authored
Merge branch 'tinymce/7' into hotfix/7/DOC-2582
2 parents c48cc3b + 01db151 commit e3ef77b

File tree

92 files changed

+2098
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2098
-310
lines changed

.api-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.1
1+
7.6.0

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
uses: actions/checkout@v4
2626

2727
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v2
28+
uses: github/codeql-action/init@v3
2929
with:
3030
languages: ${{ matrix.language }}
3131
queries: +security-and-quality
3232

3333
- name: Autobuild
34-
uses: github/codeql-action/autobuild@v2
34+
uses: github/codeql-action/autobuild@v3
3535

3636
- name: Perform CodeQL Analysis
37-
uses: github/codeql-action/analyze@v2
37+
uses: github/codeql-action/analyze@v3
3838
with:
3939
category: "/language:${{ matrix.language }}"

antora.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ asciidoc:
1515
webcomponent_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-webcomponent@2/dist/tinymce-webcomponent.min.js
1616
jquery_url: https://cdn.jsdelivr.net/npm/@tinymce/tinymce-jquery@2/dist/tinymce-jquery.min.js
1717
openai_proxy_url: https://openai.ai-demo-proxy.tiny.cloud/v1/chat/completions
18-
openai_proxy_token: eyJhbGciOiJFUzM4NCJ9.eyJhdWQiOlsiaHR0cHM6Ly9vcGVuYWkuYWktZGVtby1wcm94eS50aW55LmNsb3VkLyJdLCJleHAiOjE3MzMwMTEyMDAsImh0dHBzOi8vb3BlbmFpLmFpLWRlbW8tcHJveHkudGlueS5jbG91ZC9yb2xlIjoicHVibGljLWRlbW8iLCJpc3MiOiJodHRwczovL2FpLWRlbW8tcHJveHkudGlueS5jbG91ZC8iLCJqdGkiOiIyMmM0MjBkNy1hNjVmLTQ3NDQtODEwZS1jZWY3ZDY2ODQ1ZGYiLCJzdWIiOiJhaS1hc3Npc3RhbnQtZGVtbyJ9.H0MgAgu6EUFLO2zx6fnsnmCMw_0MWtc3Ne4ue6N_CFAowPkIjBqr022ypJqj5i3FMJNad5cWYj84jKKfPHTUaFN5RNurl09K2SDnY2OqNnhcXOT9rl3owhrGxgODOR9G
18+
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
2020
# product docker variables
2121
dockerimageimportfromwordexporttoword: registry.containers.tiny.cloud/docx-converter-tiny
@@ -26,7 +26,7 @@ asciidoc:
2626
# product variables
2727
productname: TinyMCE
2828
productmajorversion: 7
29-
productminorversion: '7.5'
29+
productminorversion: '7.6'
3030
##### product name in codeblock
3131
prodnamecode: tinymce
3232
#### more names

modules/ROOT/examples/live-demos/comments-callback/example.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ const tinycomments_reply = (req, done, fail) => {
4848
})
4949
.then((req2) => {
5050
const commentUid = req2.commentUid;
51-
done({ commentUid });
51+
done({
52+
commentUid: replyUid,
53+
author: currentUser.id,
54+
authorName: currentUser.fullName
55+
});
5256
})
5357
.catch((e) => {
5458
fail(e);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<textarea id="context-toolbar-labels">
2+
<p>Clicking on the example image below will show the newly configured context toolbar.</p>
3+
4+
{{logofordemoshtml}}
5+
6+
<p>Select a word in this sentence, to see the other newly configured context toolbar.</p>
7+
8+
<p>Clicking on text should not invoke the context toolbar</p>
9+
</textarea>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
tinymce.init({
2+
selector: 'textarea#context-toolbar-labels',
3+
height: 350,
4+
setup: (editor) => {
5+
editor.ui.registry.addContextToolbar('imagealignment', {
6+
predicate: (node) => node.nodeName.toLowerCase() === 'img',
7+
position: 'node',
8+
scope: 'node',
9+
items: [
10+
{
11+
name: 'Formatting',
12+
items: ['alignleft', 'aligncenter', 'alignright']
13+
},
14+
{
15+
label: 'Copy',
16+
items: ['copy', 'paste']
17+
}
18+
],
19+
});
20+
21+
editor.ui.registry.addContextToolbar('textselection', {
22+
predicate: (node) => !editor.selection.isCollapsed(),
23+
position: 'selection',
24+
scope: 'node',
25+
items: [
26+
{
27+
name: 'Format',
28+
items: ['bold', 'italic', 'underline']
29+
},
30+
],
31+
});
32+
},
33+
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }'
34+
});
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<textarea id="uploadcare">
2+
<h1>Discover Your Dream Home on Mallorca: Where Paradise Meets Investment</h1>
3+
<p>
4+
<span style="color: #4e5c73;">
5+
Mallorca, the jewel of the Mediterranean, is not just a place of beauty&mdash;it&rsquo;s a smart investment. With property values consistently on the rise, now is the perfect time to secure your piece of this sun-soaked paradise.&nbsp;
6+
</span>
7+
</p>
8+
<figure class="image">
9+
<img style="width: min(2048px, 100%); aspect-ratio: 2048 / 718;"
10+
src="https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/preview/"
11+
sizes="(min-width: 2048px) 2048px, 100vw"
12+
srcset="https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/100x/ 100w,
13+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/200x/ 200w,
14+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/300x/ 300w,
15+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/500x/ 500w,
16+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/750x/ 750w,
17+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/1000x/ 1000w,
18+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/1250x/ 1250w,
19+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/1500x/ 1500w,
20+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/resize/2000x/ 2000w,
21+
https://ucarecdn.com/b51db038-86df-4a83-bd9d-6942151306d0/-/preview/ 2048w">
22+
<figcaption>Michael Heuser on <a href="https://unsplash.com/@gum_meee">Unsplash</a></figcaption>
23+
</figure>
24+
<p>
25+
Let us show you why Mallorca should be your next home&mdash;and introduce you to an exquisite villa that could soon be yours.
26+
</p>
27+
<blockquote>
28+
<em>"The Mallorca real estate market has grown by an impressive 8% annually over the past five years,"</em> &mdash; Elena Alvarez, Market Analyst at Mediterranean Realty Insights.
29+
</blockquote>
30+
<p>
31+
According to recent market data, Mallorca&rsquo;s property values have experienced steady growth, with an average increase of 8% annually over the past five years. This consistent appreciation, coupled with a thriving rental market, makes it an ideal destination for investors seeking both luxury and financial returns.&nbsp;
32+
</p>
33+
<h2>Explore Our Featured Villa: The Epitome of Luxury&nbsp;</h2>
34+
<p>
35+
Located in one of Mallorca&rsquo;s most exclusive areas, this exquisite villa offers breathtaking views and modern design. Every detail has been meticulously crafted to provide the ultimate in comfort and elegance.
36+
</p>
37+
<figure class="image">
38+
<img style="width: min(2048px, 100%); aspect-ratio: 2048 / 1148;"
39+
src="https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/preview/"
40+
sizes="(min-width: 2048px) 2048px, 100vw"
41+
srcset="https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/100x/ 100w,
42+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/200x/ 200w,
43+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/300x/ 300w,
44+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/500x/ 500w,
45+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/750x/ 750w,
46+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/1000x/ 1000w,
47+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/1250x/ 1250w,
48+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/1500x/ 1500w,
49+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/resize/2000x/ 2000w,
50+
https://ucarecdn.com/ae5a4201-4b82-4238-94e8-78f4cccbffe8/-/preview/ 2048w">
51+
<figcaption>Designed by <a href="https://www.freepik.com/">Freepik</a></figcaption>
52+
</figure>
53+
<ul>
54+
<li><strong>5 luxurious bedrooms</strong> with private en-suite bathrooms</li>
55+
<li><strong>Infinity pool</strong> with panoramic Mediterranean views</li>
56+
<li><strong>Spacious terrace</strong> for outdoor dining and entertainment</li>
57+
<li><strong>Private garden</strong> with lush landscaping</li>
58+
<li><strong>Cutting-edge smart home system&nbsp;</strong></li>
59+
</ul>
60+
<figure class="image">
61+
<img style="width: min(2000px, 100%); aspect-ratio: 2000 / 1121;"
62+
src="https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/preview/"
63+
sizes="(min-width: 2000px) 2000px, 100vw"
64+
srcset="https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/100x/ 100w,
65+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/200x/ 200w,
66+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/300x/ 300w,
67+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/500x/ 500w,
68+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/750x/ 750w,
69+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/1000x/ 1000w,
70+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/1250x/ 1250w,
71+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/resize/1500x/ 1500w,
72+
https://ucarecdn.com/b384b67a-3c73-4629-be5f-07d6a2f49e01/-/preview/ 2000w">
73+
<figcaption>Designed by <a href="https://www.freepik.com/">Freepik</a></figcaption>
74+
</figure>
75+
<p>
76+
Step inside, and you&rsquo;ll find bright, open living spaces that blend seamlessly with the outdoors, creating a harmonious living environment that&rsquo;s both relaxing and inspiring.
77+
</p>
78+
<p>
79+
Owning a villa in Mallorca means more than just having a home&mdash;it means living a life of luxury and adventure. From exploring charming villages to dining at world-class restaurants and sailing the turquoise waters, every day is a new experience.
80+
</p>
81+
<h2>Make This Dream a Reality</h2>
82+
<p>
83+
Don&rsquo;t miss the opportunity to own a piece of paradise. <a href="https://www.tiny.cloud/contact/">Contact us today</a> to schedule a private tour of this exceptional villa and explore other exclusive properties on the island.
84+
</p>
85+
</textarea>
86+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
tinymce.init({
2+
selector: "textarea",
3+
plugins: [ "uploadcare", "code", "link", "preview", "lists" ],
4+
uploadcare_public_key: 'cfef242412638bfc4193',
5+
toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview",
6+
height: 700,
7+
content_style: `
8+
body { max-width: 920px; margin: 1.5rem auto; padding: 0 2vw; }
9+
h1 { font-size: 1.5em; }
10+
h2 { font-size: 1.17em; }
11+
h1, h2, h3, h4, h5, h6 { font-weight: 500; margin: 0 0 0.75rem; }
12+
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 2rem; }
13+
p { line-height: 1.6; margin: 0; }
14+
p + p { margin-top: 1rem; }
15+
a { color: #2b70e3; }
16+
blockquote { color: #4e5c73; font-weight: 200; font-size: 1.3rem; margin: 1rem 2rem; padding: 0 0 0 1rem; border-left: 2px solid #2b70e3 !important; }
17+
figcaption {font-size: 0.875em;}
18+
`
19+
});
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)