From fbc8b82a6d9f1da64b317ad2b8924c6f4a7c475d Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Mon, 14 Apr 2025 10:39:11 +1000 Subject: [PATCH 1/2] DOC-3199: Fixed Image Optimizer filters in the demo. --- .../ROOT/examples/live-demos/uploadcare/index.js | 13 +++++-------- .../partials/configuration/uploadcare_filters.adoc | 1 + 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/ROOT/examples/live-demos/uploadcare/index.js b/modules/ROOT/examples/live-demos/uploadcare/index.js index 6a9757556e..40d7018930 100644 --- a/modules/ROOT/examples/live-demos/uploadcare/index.js +++ b/modules/ROOT/examples/live-demos/uploadcare/index.js @@ -5,18 +5,15 @@ tinymce.init({ uploadcare_cdn_base_url: 'https://tiny.ucarecdn.com', uploadcare_store_type: 'temporary', uploadcare_filters: [ - { name: 'none' }, // No filter applied { name: 'adaris', amount: -100 }, // Adaris with inverted effect (amount -100), label defaults to 'adaris' - { name: 'adaris', amount: -100, label: 'Vintage Fade' }, // Adaris with inverted effect (amount -100), label reads 'Vintage Fade' + { name: 'adaris', amount: -100, label: 'Vintage' }, // Adaris with inverted effect (amount -100), label reads 'Vintage' { name: 'adaris', amount: 0, label: 'Base' }, // Adaris with neutral effect (amount 0), label reads 'Base' { name: 'adaris', amount: 50, label: 'Light' }, // Adaris with light effect (amount 50), label reads 'Light' - { name: 'adaris', amount: 100, label: 'Standard' }, // Adaris with standard effect (amount 100), label reads 'Standard' { name: 'adaris', amount: 200, label: 'Intense' }, // Adaris with intense effect (amount 200), label reads 'Intense' - { name: 'zevcen', amount: 200, label: 'Glow Boost' }, // Zevcen with intense effect (amount 200), label reads 'Glow Boost' - { name: 'galen', amount: 80, label: 'Soft Focus' }, // Galen with softening effect (amount 80), label reads 'Soft Focus' - { name: 'carris', amount: 120, label: 'Sharp Contrast' }, // Carris with high contrast (amount 120), label reads 'Sharp Contrast' - { name: 'ferand', amount: 60, label: 'Light Touch' }, // Ferand with light enhancement (amount 60), label reads 'Light Touch' - { name: 'sorahel', amount: -50, label: 'Night Mood' } // Sorahel with darkened effect (amount -50), label reads 'Night Mood' + { name: 'galen', amount: 80, label: 'Soft' }, // Galen with softening effect (amount 80), label reads 'Soft' + { name: 'carris', amount: 120, label: 'Sharp' }, // Carris with high contrast (amount 120), label reads 'Sharp' + { name: 'sorahel', amount: -50, label: 'Night' }, // Sorahel with darkened effect (amount -50), label reads 'Night' + { name: 'none' }, // No filter applied ], a11y_advanced_options: true, toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview", diff --git a/modules/ROOT/partials/configuration/uploadcare_filters.adoc b/modules/ROOT/partials/configuration/uploadcare_filters.adoc index cf430b2fb7..9991282835 100644 --- a/modules/ROOT/partials/configuration/uploadcare_filters.adoc +++ b/modules/ROOT/partials/configuration/uploadcare_filters.adoc @@ -55,6 +55,7 @@ tinymce.init({ ==== * Filter names must be selected from the supported set: ** `adaris`, `briaril`, `calarel`, `carris`, `cynarel`, `cyren`, `elmet`, `elonni`, `enzana`, `erydark`, `fenralan`, `ferand`, `galen`, `gavin`, `gethriel`, `iorill`, `iothari`, `iselva`, `jadis`, `lavra`, `misiara`, `namala`, `nerion`, `nethari`, `pamaya`, `sarnar`, `sedis`, `sewen`, `sorahel`, `sorlen`, `tarian`, `thellassan`, `varriel`, `varven`, `vevera`, `virkas`, `yedis`, `yllara`, `zatvel`, `zevcen`. +* 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. * If the amount is not set, it defaults to 100. * Some filters may behave unpredictably outside the 0–100 range. * Applying negative amount values inverts the filter, useful for creative effects. From cc0d5c4fe4b8c20cfa507068c0a32d6528be2459 Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Tue, 15 Apr 2025 09:17:18 +1000 Subject: [PATCH 2/2] DOC-3199: Moved the option explanation to an important tag section. --- modules/ROOT/partials/configuration/uploadcare_filters.adoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/partials/configuration/uploadcare_filters.adoc b/modules/ROOT/partials/configuration/uploadcare_filters.adoc index 9991282835..11e5d8dcc6 100644 --- a/modules/ROOT/partials/configuration/uploadcare_filters.adoc +++ b/modules/ROOT/partials/configuration/uploadcare_filters.adoc @@ -51,11 +51,15 @@ tinymce.init({ }); ---- +[IMPORTANT] +==== +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. +==== + [NOTE] ==== * Filter names must be selected from the supported set: ** `adaris`, `briaril`, `calarel`, `carris`, `cynarel`, `cyren`, `elmet`, `elonni`, `enzana`, `erydark`, `fenralan`, `ferand`, `galen`, `gavin`, `gethriel`, `iorill`, `iothari`, `iselva`, `jadis`, `lavra`, `misiara`, `namala`, `nerion`, `nethari`, `pamaya`, `sarnar`, `sedis`, `sewen`, `sorahel`, `sorlen`, `tarian`, `thellassan`, `varriel`, `varven`, `vevera`, `virkas`, `yedis`, `yllara`, `zatvel`, `zevcen`. -* 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. * If the amount is not set, it defaults to 100. * Some filters may behave unpredictably outside the 0–100 range. * Applying negative amount values inverts the filter, useful for creative effects.