From d9b53ff4076981da132a9fe3a7fa1ce7bc0e1ffb Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Fri, 13 Dec 2024 13:29:34 +0530 Subject: [PATCH] DOC-2599: Added the example.js. --- .../examples/live-demos/uploadcare/example.js | 21 +++++++ .../examples/live-demos/uploadcare/index.html | 62 +++++++++---------- 2 files changed, 52 insertions(+), 31 deletions(-) create mode 100644 modules/ROOT/examples/live-demos/uploadcare/example.js diff --git a/modules/ROOT/examples/live-demos/uploadcare/example.js b/modules/ROOT/examples/live-demos/uploadcare/example.js new file mode 100644 index 0000000000..82371a07ec --- /dev/null +++ b/modules/ROOT/examples/live-demos/uploadcare/example.js @@ -0,0 +1,21 @@ +tinymce.init({ + selector: "textarea", + plugins: [ "uploadcare", "code", "link", "preview", "lists" ], + uploadcare_public_key: '', + uploadcare_store_type: 'temporary', + a11y_advanced_options: true, + toolbar: "undo redo | styles | bold italic underline | forecolor | bullist numlist| link uploadcare | code preview", + height: 700, + content_style: ` + body { max-width: 920px; margin: 1.5rem auto; padding: 0 2vw; } + h1 { font-size: 1.5em; } + h2 { font-size: 1.17em; } + h1, h2, h3, h4, h5, h6 { font-weight: 500; margin: 0 0 0.75rem; } + p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 2rem; } + p { line-height: 1.6; margin: 0; } + p + p { margin-top: 1rem; } + a { color: #2b70e3; } + blockquote { color: #4e5c73; font-weight: 200; font-size: 1.3rem; margin: 1rem 2rem; padding: 0 0 0 1rem; border-left: 2px solid #2b70e3 !important; } + figcaption {font-size: 0.875em;} + ` + }); \ No newline at end of file diff --git a/modules/ROOT/examples/live-demos/uploadcare/index.html b/modules/ROOT/examples/live-demos/uploadcare/index.html index e60bacc7d0..bc2ee8fe4d 100644 --- a/modules/ROOT/examples/live-demos/uploadcare/index.html +++ b/modules/ROOT/examples/live-demos/uploadcare/index.html @@ -1,33 +1,33 @@ + \ No newline at end of file