Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"main: Updated a11y plugin demo to v7" #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tinymce-demos/plugins/64-webinar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>

<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>
<script>

tinymce.init({
Expand Down
22 changes: 11 additions & 11 deletions tinymce-demos/plugins/a11ychecker-embed-media-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>

<script>
// TinyMCE CMS Starter Config
Expand All @@ -24,53 +24,53 @@

// Configure the toolbar so it fits your app. There are many
// different configuration options available:
// https://www.tiny.cloud/docs/tinymce/6/toolbar-configuration-options/
// https://www.tiny.cloud/docs/tinymce/7/toolbar-configuration-options/
toolbar: 'undo redo | styles | bold italic strikethrough forecolor | align | table link image media pageembed | bullist numlist outdent indent | spellcheckdialog a11ycheck | typography code',

// Specify the height of the editor, including toolbars and the statusbar.
// https://www.tiny.cloud/docs/tinymce/6/customize-ui/#changing-editor-height-and-width
// https://www.tiny.cloud/docs/tinymce/7/customize-ui/#changing-editor-height-and-width
height: 540,

// The Accessibility Checker plugin offers extensive controls over which
// level of compliance to test against and which rules to enforce.
// https://www.tiny.cloud/docs/tinymce/6/a11ychecker/
// https://www.tiny.cloud/docs/tinymce/7/a11ychecker/
a11ychecker_level: 'aaa',

// Advanced Typography allows users to apply 25+ typographic conventions to their content.
// Specify the language(s) you want the plugin to use. In this case we are just allowing
// English, but an array of languages can also be specified.
// https://www.tiny.cloud/docs/tinymce/6/advanced-typography/
// https://www.tiny.cloud/docs/tinymce/7/advanced-typography/
typography_langs: [ 'en-US' ],
typography_default_lang: 'en-US',

// Advanced Code Editor lets power users edit the editor's underlying HTML in real time,
// with indents and color coding. Enable inline view for a more seamless code editing
// experience.
// https://www.tiny.cloud/docs/tinymce/6/advcode/
// https://www.tiny.cloud/docs/tinymce/7/advcode/
advcode_inline: true,


// TinyMCE offers a wide range of options to control what classes, styles
// and attributes are allowed in the content. All other classes will be
// filtered out.
// https://www.tiny.cloud/docs/tinymce/6/content-filtering/#valid_classes
// https://www.tiny.cloud/docs/tinymce/7/content-filtering/#valid_classes
valid_classes: {
'img': 'medium',
'div': 'related-content'
},

// Enable image fig captions
// https://www.tiny.cloud/docs/tinymce/6/image/#image_caption
// https://www.tiny.cloud/docs/tinymce/7/image/#image_caption
image_caption: true,

// Prevent editing of the related content block by making the whole
// block noneditable.
// https://www.tiny.cloud/docs/tinymce/6/content-behavior-options/#noneditable_class
// https://www.tiny.cloud/docs/tinymce/7/content-behavior-options/#noneditable_class
noneditable_class: 'related-content',

// Templates is useful for when users need to insert repeatable content,
// for example a related content block.
// https://www.tiny.cloud/docs/tinymce/6/template/
// https://www.tiny.cloud/docs/tinymce/7/template/
templates: [
{
title: 'Related content',
Expand All @@ -95,7 +95,7 @@
// the default styles.
// In a real world scenario, it's recommended to use the content_css
// option to load a separate CSS file. This makes editing easier too.
// https://www.tiny.cloud/docs/tinymce/6/add-css-options/
// https://www.tiny.cloud/docs/tinymce/7/add-css-options/
content_style: `
body {
font-family: 'Roboto', sans-serif;
Expand Down
6 changes: 3 additions & 3 deletions tinymce-demos/plugins/advtemplates-mergetags-inlinecss.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>TinyMCE Advanced Templates Demo</title>
<title>TinyMCE Templates Demo</title>

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>

<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>
<script>

tinymce.init({
Expand Down Expand Up @@ -84,7 +84,7 @@
<div class="container-lg">
<div class="row">
<div class="col">
<h1 class="title">Advanced Templates, Merge Tags & Inline CSS demo</h1><br>
<h1 class="title">Templates, Merge Tags & Inline CSS demo</h1><br>
</div>
</div>
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion tinymce-demos/plugins/comments-mentions-footnotes-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>

<script>
/* Script to import faker.js for generating random data for demonstration purposes */
Expand Down
2 changes: 1 addition & 1 deletion tinymce-demos/plugins/powerpaste-website.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>

<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>
<script>

let commonConfig = {
Expand Down
2 changes: 1 addition & 1 deletion tinymce-demos/plugins/powerpaste.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>

<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>
<script>

let commonConfig = {
Expand Down
2 changes: 1 addition & 1 deletion tinymce-demos/plugins/spelling.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="../css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>

<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/7/tinymce.min.js" referrerpolicy="origin"></script>
<script>

tinymce.init({
Expand Down