Skip to content

Commit 1f3273c

Browse files
author
Farzad Hayatbakhsh
committed
DOC-2581: Customize a11y_advanced_options.adoc for Uploadcare
1 parent a19c6e8 commit 1f3273c

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

modules/ROOT/pages/uploadcare.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,9 @@ include::partial$configuration/uploadcare_srcset_steps.adoc[leveloffset=+1]
197197

198198
include::partial$configuration/uploadcare_store_type.adoc[leveloffset=+1]
199199

200-
201-
== Optional Option
202-
200+
:includedSection: uploadcarePlugin
203201
include::partial$configuration/a11y_advanced_options.adoc[leveloffset=+1]
202+
:!includedSection:
204203

205204
include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[]
206205

modules/ROOT/partials/configuration/a11y_advanced_options.adoc

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ IMPORTANT: When `+a11y_advanced_options+` is set to `+true+`, xref:a11ychecker.a
2323

2424
=== Example: using `+a11y_advanced_options+`
2525

26+
ifeval::["{includedSection}" == "uploadcarePlugin"]
27+
28+
[source,js]
29+
----
30+
tinymce.init({
31+
selector: 'textarea', // change this value according to your HTML
32+
plugins: 'uploadcare',
33+
toolbar: 'uploadcare',
34+
uploadcare_public_key: '<your-public-key>',
35+
a11y_advanced_options: true,
36+
});
37+
----
38+
39+
endif::[]
2640
ifeval::["{includedSection}" == "imagePlugin"]
2741

2842
[source,js]
@@ -31,7 +45,7 @@ tinymce.init({
3145
selector: 'textarea', // change this value according to your HTML
3246
plugins: 'image',
3347
toolbar: 'image',
34-
a11y_advanced_options: true
48+
a11y_advanced_options: true,
3549
});
3650
----
3751

@@ -44,7 +58,7 @@ tinymce.init({
4458
selector: 'textarea', // change this value according to your HTML
4559
plugins: 'a11ychecker',
4660
toolbar: 'a11ycheck',
47-
a11y_advanced_options: true
61+
a11y_advanced_options: true,
4862
});
4963
----
5064

@@ -57,7 +71,7 @@ tinymce.init({
5771
selector: 'textarea', // change this value according to your HTML
5872
plugins: 'a11ychecker image',
5973
toolbar: 'a11ycheck image',
60-
a11y_advanced_options: true
74+
a11y_advanced_options: true,
6175
});
6276
----
6377

0 commit comments

Comments
 (0)