Skip to content

Commit 9217cde

Browse files
committed
DOC-3296: Rename Image Optimizer to Media Optimizer, add new UC-Video Documentation with supporting demos.
1 parent 823843b commit 9217cde

23 files changed

+1088
-214
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
tinymce.init({
2+
selector: "textarea#uploadcare-full-feature",
3+
plugins: [ "uploadcare", "code", "link", "preview", "lists" ],
4+
uploadcare_public_key: '<your-public-key>',
5+
uploadcare_filters: [
6+
{ name: 'none' }, // No filter applied
7+
{ name: 'adaris', amount: -100 }, // Adaris with inverted effect (amount -100), label defaults to 'adaris'
8+
{ name: 'adaris', amount: -100, label: 'Vintage Fade' }, // Adaris with inverted effect (amount -100), label reads 'Vintage Fade'
9+
{ name: 'adaris', amount: 0, label: 'Base' }, // Adaris with neutral effect (amount 0), label reads 'Base'
10+
{ name: 'adaris', amount: 50, label: 'Light' }, // Adaris with light effect (amount 50), label reads 'Light'
11+
{ name: 'adaris', amount: 100, label: 'Standard' }, // Adaris with standard effect (amount 100), label reads 'Standard'
12+
{ name: 'adaris', amount: 200, label: 'Intense' }, // Adaris with intense effect (amount 200), label reads 'Intense'
13+
{ name: 'zevcen', amount: 200, label: 'Glow Boost' }, // Zevcen with intense effect (amount 200), label reads 'Glow Boost'
14+
{ name: 'galen', amount: 80, label: 'Soft Focus' }, // Galen with softening effect (amount 80), label reads 'Soft Focus'
15+
{ name: 'carris', amount: 120, label: 'Sharp Contrast' }, // Carris with high contrast (amount 120), label reads 'Sharp Contrast'
16+
{ name: 'ferand', amount: 60, label: 'Light Touch' }, // Ferand with light enhancement (amount 60), label reads 'Light Touch'
17+
{ name: 'sorahel', amount: -50, label: 'Night Mood' } // Sorahel with darkened effect (amount -50), label reads 'Night Mood'
18+
],
19+
// Video configuration
20+
uploadcare_video_properties: {
21+
controls: true,
22+
autoplay: false,
23+
loop: false,
24+
muted: false,
25+
playsInline: true,
26+
preload: 'metadata',
27+
showLogo: false
28+
},
29+
uploadcare_disable_video_resize: false,
30+
uploadcare_supported_files: [
31+
{ mimeType: 'video/mp4', extensions: ['mp4'] },
32+
{ mimeType: 'video/webm', extensions: ['webm'] }
33+
],
34+
a11y_advanced_options: true,
35+
toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview",
36+
height: 700,
37+
content_style: `
38+
body { max-width: 920px; margin: 1.5rem auto; padding: 0 2vw; }
39+
h1 { font-size: 1.5em; }
40+
h2 { font-size: 1.17em; }
41+
h1, h2, h3, h4, h5, h6 { font-weight: 500; margin: 0 0 0.75rem; }
42+
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 2rem; }
43+
p { line-height: 1.6; margin: 0; }
44+
p + p { margin-top: 1rem; }
45+
a { color: #2b70e3; }
46+
blockquote { color: #4e5c73; font-weight: 200; font-size: 1.3rem; margin: 1rem 2rem; padding: 0 0 0 1rem; border-left: 2px solid #2b70e3 !important; }
47+
figcaption {font-size: 0.875em;}
48+
uc-video { display: block; margin: 1rem 0; }
49+
`
50+
});
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<textarea id="uploadcare-full-feature">
2+
<h1>Discover Your Dream Home on Mallorca: Where Paradise Meets Investment</h1>
3+
<p><span style="color: #4e5c73;">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;</span></p>
4+
5+
<figure class="image"><img style="width: min(2048px, 100%); aspect-ratio: 2048 / 718;" src="https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/preview/" sizes="(min-width: 2048px) 2048px, 100vw" srcset="https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/100x/ 100w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/200x/ 200w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/300x/ 300w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/500x/ 500w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/750x/ 750w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/1000x/ 1000w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/1250x/ 1250w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/1500x/ 1500w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/resize/2000x/ 2000w,https://tiny.ucarecdn.com/ab5fa504-67d7-4905-ac98-537ef63006f4/-/preview/ 2048w" alt="Mallorca">
6+
<figcaption>Michael Heuser on <a href="https://unsplash.com/@gum_meee">Unsplash</a></figcaption>
7+
</figure>
8+
9+
<p>Let us show you why Mallorca should be your next home&mdash;and introduce you to an exquisite villa that could soon be yours.</p>
10+
11+
<h2>Experience Mallorca in Motion</h2>
12+
<p>Watch this stunning video showcasing the beauty and lifestyle that awaits you on this Mediterranean paradise:</p>
13+
<p><uc-video uuid="83fd9f98-1939-4d99-b5e3-85563f89f5fb" class="tox-uc-video" contenteditable="false" controls="true" /></p>
14+
<p><em>Experience the crystal-clear waters, charming villages, and breathtaking landscapes that make Mallorca the perfect destination for your dream home.</em></p>
15+
<blockquote><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.</blockquote>
16+
<p>According to recent market data, Mallorca&rsquo;s property values have experienced steady growth, with an average&nbsp;<a href="tiny.cloud">increase of 8% annually over the past five years</a>. This consistent appreciation, coupled with a thriving rental market, makes it an ideal destination for investors seeking both luxury and financial returns.&nbsp;</p>
17+
<h2>Explore Our Featured Villa: The Epitome of Luxury&nbsp;</h2>
18+
<p>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.</p>
19+
<figure class="image"><img style="width: min(2048px, 100%); aspect-ratio: 2048 / 1148;" src="https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/preview/" sizes="(min-width: 2048px) 2048px, 100vw" srcset="https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/100x/ 100w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/200x/ 200w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/300x/ 300w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/500x/ 500w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/750x/ 750w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/1000x/ 1000w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/1250x/ 1250w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/1500x/ 1500w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/resize/2000x/ 2000w,https://tiny.ucarecdn.com/6e215038-158f-48d1-a94d-d1a74f4f6275/-/preview/ 2048w" alt="luxury wooden house interior">
20+
<figcaption>Designed by <a href="https://www.freepik.com/">Freepik</a></figcaption>
21+
</figure>
22+
<ul>
23+
<li><strong>5 luxurious bedrooms</strong> with private en-suite bathrooms</li>
24+
<li><strong>Infinity pool</strong> with panoramic Mediterranean views</li>
25+
<li><strong>Spacious terrace</strong> for outdoor dining and entertainment</li>
26+
<li><strong>Private garden</strong> with lush landscaping</li>
27+
<li><strong>Cutting-edge smart home system&nbsp;</strong><strong>&nbsp;</strong></li>
28+
</ul>
29+
<figure class="image"><img style="width: min(2000px, 100%); aspect-ratio: 2000 / 1121;" src="https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/preview/" sizes="(min-width: 2000px) 2000px, 100vw" srcset="https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/100x/ 100w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/200x/ 200w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/300x/ 300w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/500x/ 500w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/750x/ 750w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/1000x/ 1000w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/1250x/ 1250w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/resize/1500x/ 1500w,https://tiny.ucarecdn.com/f5cf612d-98a4-4159-a153-ae0aa7bb74a5/-/preview/ 2000w" alt="beautiful kitchen interior design">
30+
<figcaption>Designed by <a href="https://www.freepik.com/">Freepik</a></figcaption>
31+
</figure>
32+
<p>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.</p>
33+
<p>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.</p>
34+
<h2>Make This Dream a Reality</h2>
35+
<p>Don&rsquo;t miss the opportunity to own a piece of paradise. <a href="tiny.cloud">Contact us today</a> to schedule a private tour of this exceptional villa and explore other exclusive properties on the island.</p>
36+
</textarea>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
tinymce.init({
2+
selector: "textarea#uploadcare-full-feature",
3+
plugins: [ "uploadcare", "code", "link", "preview", "lists" ],
4+
uploadcare_public_key: '630992ad50fe2291c406',
5+
uploadcare_cdn_base_url: 'https://tiny.ucarecdn.com',
6+
uploadcare_store_type: 'temporary',
7+
uploadcare_filters: [
8+
{ name: 'adaris', amount: -100 }, // Adaris with inverted effect (amount -100), label defaults to 'adaris'
9+
{ name: 'adaris', amount: -100, label: 'Vintage' }, // Adaris with inverted effect (amount -100), label reads 'Vintage'
10+
{ name: 'adaris', amount: 0, label: 'Base' }, // Adaris with neutral effect (amount 0), label reads 'Base'
11+
{ name: 'adaris', amount: 50, label: 'Light' }, // Adaris with light effect (amount 50), label reads 'Light'
12+
{ name: 'adaris', amount: 200, label: 'Intense' }, // Adaris with intense effect (amount 200), label reads 'Intense'
13+
{ name: 'galen', amount: 80, label: 'Soft' }, // Galen with softening effect (amount 80), label reads 'Soft'
14+
{ name: 'carris', amount: 120, label: 'Sharp' }, // Carris with high contrast (amount 120), label reads 'Sharp'
15+
{ name: 'sorahel', amount: -50, label: 'Night' }, // Sorahel with darkened effect (amount -50), label reads 'Night'
16+
{ name: 'none' }, // No filter applied
17+
],
18+
// Video configuration
19+
uploadcare_video_properties: {
20+
controls: true,
21+
autoplay: false,
22+
loop: false,
23+
muted: false,
24+
playsInline: true,
25+
preload: 'metadata',
26+
showLogo: false
27+
},
28+
uploadcare_disable_video_resize: false,
29+
uploadcare_supported_files: [
30+
{ mimeType: 'video/mp4', extensions: ['mp4'] },
31+
{ mimeType: 'video/webm', extensions: ['webm'] }
32+
],
33+
a11y_advanced_options: true,
34+
toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview",
35+
height: 700,
36+
content_style: `
37+
body { max-width: 920px; margin: 1.5rem auto; padding: 0 2vw; }
38+
h1 { font-size: 1.5em; }
39+
h2 { font-size: 1.17em; }
40+
h1, h2, h3, h4, h5, h6 { font-weight: 500; margin: 0 0 0.75rem; }
41+
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 2rem; }
42+
p { line-height: 1.6; margin: 0; }
43+
p + p { margin-top: 1rem; }
44+
a { color: #2b70e3; }
45+
blockquote { color: #4e5c73; font-weight: 200; font-size: 1.3rem; margin: 1rem 2rem; padding: 0 0 0 1rem; border-left: 2px solid #2b70e3 !important; }
46+
figcaption {font-size: 0.875em;}
47+
uc-video { display: block; margin: 1rem 0; }
48+
`
49+
});
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
tinymce.init({
2+
selector: "textarea#uploadcare-image",
3+
plugins: [ "uploadcare", "code", "link", "preview", "lists" ],
4+
uploadcare_public_key: '<your-public-key>',
5+
uploadcare_filters: [
6+
{ name: 'none' }, // No filter applied
7+
{ name: 'adaris', amount: -100 }, // Adaris with inverted effect (amount -100), label defaults to 'adaris'
8+
{ name: 'adaris', amount: -100, label: 'Vintage Fade' }, // Adaris with inverted effect (amount -100), label reads 'Vintage Fade'
9+
{ name: 'adaris', amount: 0, label: 'Base' }, // Adaris with neutral effect (amount 0), label reads 'Base'
10+
{ name: 'adaris', amount: 50, label: 'Light' }, // Adaris with light effect (amount 50), label reads 'Light'
11+
{ name: 'adaris', amount: 100, label: 'Standard' }, // Adaris with standard effect (amount 100), label reads 'Standard'
12+
{ name: 'adaris', amount: 200, label: 'Intense' }, // Adaris with intense effect (amount 200), label reads 'Intense'
13+
{ name: 'zevcen', amount: 200, label: 'Glow Boost' }, // Zevcen with intense effect (amount 200), label reads 'Glow Boost'
14+
{ name: 'galen', amount: 80, label: 'Soft Focus' }, // Galen with softening effect (amount 80), label reads 'Soft Focus'
15+
{ name: 'carris', amount: 120, label: 'Sharp Contrast' }, // Carris with high contrast (amount 120), label reads 'Sharp Contrast'
16+
{ name: 'ferand', amount: 60, label: 'Light Touch' }, // Ferand with light enhancement (amount 60), label reads 'Light Touch'
17+
{ name: 'sorahel', amount: -50, label: 'Night Mood' } // Sorahel with darkened effect (amount -50), label reads 'Night Mood'
18+
],
19+
a11y_advanced_options: true,
20+
toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview",
21+
height: 700,
22+
content_style: `
23+
body { max-width: 920px; margin: 1.5rem auto; padding: 0 2vw; }
24+
h1 { font-size: 1.5em; }
25+
h2 { font-size: 1.17em; }
26+
h1, h2, h3, h4, h5, h6 { font-weight: 500; margin: 0 0 0.75rem; }
27+
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 2rem; }
28+
p { line-height: 1.6; margin: 0; }
29+
p + p { margin-top: 1rem; }
30+
a { color: #2b70e3; }
31+
blockquote { color: #4e5c73; font-weight: 200; font-size: 1.3rem; margin: 1rem 2rem; padding: 0 0 0 1rem; border-left: 2px solid #2b70e3 !important; }
32+
figcaption {font-size: 0.875em;}
33+
`
34+
});

0 commit comments

Comments
 (0)