Skip to content

Commit 8348546

Browse files
committed
DOC-3296: fix ifeval blocks
1 parent 95f5042 commit 8348546

File tree

2 files changed

+32
-190
lines changed

2 files changed

+32
-190
lines changed

modules/ROOT/pages/uploadcare.adoc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ For a complete guide to the features provided by the {pluginname} plugin, see th
5757

5858
a|
5959
[.lead]
60-
xref:uploadcare-image.adoc[Image]
60+
xref:uploadcare-image.adoc#uploadcare_supported_files[Image]
6161

6262
Image optimization options, including image filtering, resizing, and adjusting.
6363

6464
a|
6565
[.lead]
66-
xref:uploadcare-video.adoc[Video]
66+
xref:uploadcare-video.adoc#uploadcare_supported_files[Video]
6767

6868
Video optimization options, including video player customization, resizing, and adjusting.
6969

@@ -84,14 +84,9 @@ include::partial$configuration/uploadcare_cdn_base_url.adoc[leveloffset=+1]
8484

8585
include::partial$configuration/uploadcare_store_type.adoc[leveloffset=+1]
8686

87+
:pluginfeature: mediaoptimizer
8788
include::partial$configuration/uploadcare_supported_files.adoc[leveloffset=+1]
8889

89-
For more information on feature specific supported file types, see the following pages:
90-
91-
* xref:uploadcare-image.adoc#uploadcare_supported_files[Image]
92-
* xref:uploadcare-video.adoc#uploadcare_supported_files[Video]
93-
94-
9590
:includedSection: uploadcarePlugin
9691
include::partial$configuration/a11y_advanced_options.adoc[leveloffset=+1]
9792
:!includedSection:

modules/ROOT/partials/configuration/uploadcare_supported_files.adoc

Lines changed: 29 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Defines the supported file types and their extensions for upload.
55

66
*Type:* `+Array<Object>+`
77

8-
*Default:* See supported file types below
8+
*Default:* See a full list of supported file types below see xref:uploadcare-image.adoc#uploadcare-supported-files[Image Supported File Types] and xref:uploadcare-video.adoc#uploadcare-supported-files[Video Supported File Types]
99

1010
=== Configuration Schema
1111

@@ -24,11 +24,34 @@ Each entry must contain:
2424
| Yes
2525
|===
2626

27+
ifeval::["{pluginfeature}" == "mediaoptimizer"]
28+
.Basic example: Image file types configuration and mp4 video file type configuration
29+
[source,js]
30+
----
31+
tinymce.init({
32+
selector: 'textarea',
33+
plugins: 'uploadcare',
34+
toolbar: 'uploadcare',
35+
uploadcare_public_key: '<your-public-key>',
36+
uploadcare_supported_files: [
37+
{
38+
mimeType: 'image/jpeg',
39+
extensions: ['jpg', 'jpeg', 'jpe', 'jif', 'jfi', 'jfif']
40+
},
41+
{
42+
mimeType: 'video/mpeg4-generic',
43+
extensions: ['mp4']
44+
},
45+
]
46+
});
47+
----
48+
endif::[]
49+
50+
ifeval::["{pluginfeature}" == "image" && "{pluginfeature}" != "mediaoptimizer"]
2751
=== Default Supported File Types
2852

29-
The uploadcare plugin supports a comprehensive range of file types by default, including images and videos. The specific file types supported depend on the features being used.
53+
The uploadcare plugin supports a comprehensive range of image file types by default.
3054

31-
ifeval::["{pluginfeature}" == "image"]
3255
==== Images
3356

3457
[cols="1,1,1"]
@@ -78,186 +101,10 @@ ifeval::["{pluginfeature}" == "image"]
78101
endif::[]
79102

80103

81-
ifeval::["{pluginfeature}" == "video"]
82-
==== Videos
83-
84-
[cols="1,1,1"]
85-
|===
86-
|Category | MIME Type | Extensions
87-
88-
| MP4 Video
89-
| `video/mp4`
90-
| `mp4`, `m4v`
91-
92-
| WebM Video
93-
| `video/webm`
94-
| `webm`
95-
96-
| 3GPP Video
97-
| `video/3gpp`
98-
| `3gp`, `3gpp`
99-
100-
| 3GPP2 Video
101-
| `video/3gpp2`
102-
| `3g2`, `3gp2`, `3gpp2`
103-
104-
| MPEG Transport Stream
105-
| `video/MP2T`
106-
| `m2t`, `m2ts`, `MTS`
107-
108-
| Motion JPEG 2000
109-
| `video/mj2`
110-
| `mj2`, `mjp2`
111-
112-
| MPEG Video
113-
| `video/mpeg`
114-
| `mpeg`, `mpg`, `mpe`, `m1v`, `m2v`, `mpv`
115-
116-
| MPEG4 Generic
117-
| `video/mpeg4-generic`
118-
| `mp4`
119-
120-
| OGG Video
121-
| `video/ogg`
122-
| `ogv`, `ogg`, `ogx`, `oga`, `ogm`, `spx`
123-
124-
| QuickTime Video
125-
| `video/quicktime`
126-
| `mov`, `movie`, `qt`
127-
128-
| DVB Video
129-
| `video/vnd.dvb.file`
130-
| `dvb`
131-
132-
| 4XMV Video
133-
| `video/x-4xmv`
134-
| `4xmv`
135-
136-
| AMV Video
137-
| `video/x-amv`
138-
| `amv`, `mtv`
139-
140-
| CDXA Video
141-
| `video/x-cdxa`
142-
| `dat`
143-
144-
| FLC Video
145-
| `video/x-flc`
146-
| `flc`
147-
148-
| FLI Video
149-
| `video/x-fli`
150-
| `fli`
151-
152-
| Flash Video
153-
| `video/x-flv`
154-
| `flv`
155-
156-
| IFO Video
157-
| `video/x-ifo`
158-
| `ifo`
159-
160-
| JNG Video
161-
| `video/x-jng`
162-
| `jng`
163-
164-
| M4V Video
165-
| `video/x-m4v`
166-
| `m4v`
167-
168-
| Matroska Video
169-
| `video/x-matroska`
170-
| `mkv`, `mk3d`, `mka`, `mks`
171-
172-
| MMM Video
173-
| `video/x-mmm`
174-
| `mmm`
175-
176-
| MNG Video
177-
| `video/x-mng`
178-
| `mng`
179-
180-
| Microsoft ASF/WMV
181-
| `video/x-ms-asf`
182-
| `asf`, `wmv`, `wma`
183-
184-
| AVI Video
185-
| `video/x-msvideo`
186-
| `avi`
187-
188-
| SGI Movie
189-
| `video/x-sgi-movie`
190-
| `movie`
191-
192-
| VDR Video
193-
| `video/x-vdr`
194-
| `vdr`
195-
196-
| MXF Video
197-
| `application/mxf`
198-
| `mxf`
199-
200-
| OGG Application
201-
| `application/ogg`
202-
| `ogv`, `ogg`, `ogx`, `oga`, `ogm`, `spx`
203-
204-
| RealMedia
205-
| `application/vnd.rn-realmedia`
206-
| `rm`, `rma`, `rmi`, `rmv`, `rmvb`, `rmhd`, `rmm`, `ra`, `ram`
207-
208-
| RIFF Video/Audio
209-
| `application/x-riff`
210-
| `avi`, `wav`
211-
|===
212-
endif::[]
213-
214-
ifeval::["{pluginfeature}" != "image" && "{pluginfeature}" != "video"]
215-
==== Images
216-
217-
[cols="1,1,1"]
218-
|===
219-
|Category | MIME Type | Extensions
220-
221-
| JPEG Images
222-
| `image/jpeg`
223-
| `jpg`, `jpeg`, `jpe`, `jif`, `jfi`, `jfif`
224-
225-
| GIF Images
226-
| `image/gif`
227-
| `gif`
228-
229-
| PNG Images
230-
| `image/png`
231-
| `png`
232-
233-
| AVIF Images
234-
| `image/avif`
235-
| `avif`
236-
237-
| BMP Images
238-
| `image/bmp`
239-
| `bmp`
240-
241-
| TIFF Images
242-
| `image/tiff`
243-
| `tif`, `tiff`
244-
245-
| WebP Images
246-
| `image/webp`
247-
| `webp`
248-
249-
| HEIC Images
250-
| `image/heic`
251-
| `heic`
252-
253-
| PCX Images
254-
| `image/x-pcx`
255-
| `pcx`
104+
ifeval::["{pluginfeature}" == "video" && "{pluginfeature}" != "mediaoptimizer"]
105+
=== Default Supported File Types
256106

257-
| TGA Images
258-
| `image/x-tga`
259-
| `tga`, `icb`, `vda`, `vst`
260-
|===
107+
The uploadcare plugin supports a comprehensive range of video file types by default.
261108

262109
==== Videos
263110

0 commit comments

Comments
 (0)