Skip to content

Commit cc2220f

Browse files
DOC-3199: Fixed Image Optimizer filters in the demo. (#3686)
* DOC-3199: Fixed Image Optimizer filters in the demo. * DOC-3199: Moved the option explanation to an important tag section.
1 parent 2bd23a9 commit cc2220f

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

modules/ROOT/examples/live-demos/uploadcare/index.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ tinymce.init({
55
uploadcare_cdn_base_url: 'https://tiny.ucarecdn.com',
66
uploadcare_store_type: 'temporary',
77
uploadcare_filters: [
8-
{ name: 'none' }, // No filter applied
98
{ name: 'adaris', amount: -100 }, // Adaris with inverted effect (amount -100), label defaults to 'adaris'
10-
{ name: 'adaris', amount: -100, label: 'Vintage Fade' }, // Adaris with inverted effect (amount -100), label reads 'Vintage Fade'
9+
{ name: 'adaris', amount: -100, label: 'Vintage' }, // Adaris with inverted effect (amount -100), label reads 'Vintage'
1110
{ name: 'adaris', amount: 0, label: 'Base' }, // Adaris with neutral effect (amount 0), label reads 'Base'
1211
{ name: 'adaris', amount: 50, label: 'Light' }, // Adaris with light effect (amount 50), label reads 'Light'
13-
{ name: 'adaris', amount: 100, label: 'Standard' }, // Adaris with standard effect (amount 100), label reads 'Standard'
1412
{ name: 'adaris', amount: 200, label: 'Intense' }, // Adaris with intense effect (amount 200), label reads 'Intense'
15-
{ name: 'zevcen', amount: 200, label: 'Glow Boost' }, // Zevcen with intense effect (amount 200), label reads 'Glow Boost'
16-
{ name: 'galen', amount: 80, label: 'Soft Focus' }, // Galen with softening effect (amount 80), label reads 'Soft Focus'
17-
{ name: 'carris', amount: 120, label: 'Sharp Contrast' }, // Carris with high contrast (amount 120), label reads 'Sharp Contrast'
18-
{ name: 'ferand', amount: 60, label: 'Light Touch' }, // Ferand with light enhancement (amount 60), label reads 'Light Touch'
19-
{ name: 'sorahel', amount: -50, label: 'Night Mood' } // Sorahel with darkened effect (amount -50), label reads 'Night Mood'
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
2017
],
2118
a11y_advanced_options: true,
2219
toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview",

modules/ROOT/partials/configuration/uploadcare_filters.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ tinymce.init({
5151
});
5252
----
5353

54+
[IMPORTANT]
55+
====
56+
The `{ name: 'none' }` option adds a "No filter" or "Remove filter" choice to the list of available filters. This allows end users to remove any applied filter. If this option is **not** included, users will **not** have a way to remove a filter once it's been applied.
57+
====
58+
5459
[NOTE]
5560
====
5661
* Filter names must be selected from the supported set:

0 commit comments

Comments
 (0)