Compare commits
10 Commits
5591880b1b
...
d393e401dd
Author | SHA1 | Date | |
---|---|---|---|
d393e401dd | |||
1e13637edf | |||
0500dbd7dd | |||
bcdaae9743 | |||
874991a0e8 | |||
257b57f94d | |||
1f493f30da | |||
d5c493cd1a | |||
a0b5ce2624 | |||
752a80da08 |
8
icons/default/icons.min.js
vendored
8
icons/default/icons.min.js
vendored
File diff suppressed because one or more lines are too long
11
models/dom/model.min.js
vendored
11
models/dom/model.min.js
vendored
File diff suppressed because one or more lines are too long
38
plugins/a11ychecker/css/annotations.css
Normal file
38
plugins/a11ychecker/css/annotations.css
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/*!
|
||||||
|
* Tiny Accessibility Checker Plugin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*
|
||||||
|
* Version: 7.0.0-22
|
||||||
|
*/
|
||||||
|
|
||||||
|
[data-ephox-foam-a11y-violation] {
|
||||||
|
outline: 1px solid;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation] {
|
||||||
|
outline-width: 2px;
|
||||||
|
transition: outline-width .1s ease-in-out, background-color .1s ease-in-out;
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-severity-info] {
|
||||||
|
outline-color: #3498db;
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-severity-warn] {
|
||||||
|
outline-color: #e67e22;
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-severity-error] {
|
||||||
|
outline-color: #e74c3c;
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation="info"] {
|
||||||
|
outline-color: rgba(52,152,219,.25);
|
||||||
|
background-color: rgba(52,152,219,.25);
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation="warning"] {
|
||||||
|
outline-color: rgba(230,126,34,.25);
|
||||||
|
background-color: rgba(230,126,34,.25);
|
||||||
|
}
|
||||||
|
[data-ephox-foam-a11y-violation][data-ephox-foam-a11y-current-violation="error"] {
|
||||||
|
outline-color: rgba(231,76,60,.25);
|
||||||
|
background-color: rgba(231,76,60,.25);
|
||||||
|
}
|
4
plugins/a11ychecker/plugin.min.js
vendored
4
plugins/a11ychecker/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
6
plugins/advcode/plugin.min.js
vendored
6
plugins/advcode/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
6
plugins/advtable/plugin.min.js
vendored
6
plugins/advtable/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
6
plugins/advtemplate/plugin.min.js
vendored
6
plugins/advtemplate/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
4
plugins/ai/plugin.min.js
vendored
4
plugins/ai/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
2
plugins/casechange/plugin.min.js
vendored
2
plugins/casechange/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
2
plugins/checklist/plugin.min.js
vendored
2
plugins/checklist/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
6
plugins/editimage/plugin.min.js
vendored
6
plugins/editimage/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
2
plugins/export/plugin.min.js
vendored
2
plugins/export/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
2
plugins/footnotes/plugin.min.js
vendored
2
plugins/footnotes/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
2
plugins/formatpainter/plugin.min.js
vendored
2
plugins/formatpainter/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
6
plugins/inlinecss/plugin.min.js
vendored
6
plugins/inlinecss/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
10
plugins/linkchecker/plugin.min.js
vendored
Normal file
10
plugins/linkchecker/plugin.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
plugins/mediaembed/content.min.css
vendored
Normal file
10
plugins/mediaembed/content.min.css
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*!
|
||||||
|
* Tiny Enhanced Media Embed plugin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*
|
||||||
|
* Version: 7.0.0-22
|
||||||
|
*/
|
||||||
|
|
||||||
|
.ephox-summary-card{border:1px solid #AAA;box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.2),0 1px 5px 0 rgba(0,0,0,0.12);padding:10px;overflow:hidden;margin-bottom:1em}.ephox-summary-card a{text-decoration:none;color:inherit}.ephox-summary-card a:visited{color:inherit}.ephox-summary-card-title{font-size:1.2em;display:block}.ephox-summary-card-author{color:#999;display:block;margin-top:.5em}.ephox-summary-card-website{color:#999;display:block;margin-top:.5em}.ephox-summary-card-thumbnail{max-width:180px;max-height:180px;margin-left:2em;float:right}.ephox-summary-card-description{margin-top:.5em;display:block}div[data-ephox-embed-iri][data-mce-selected="2"] .mce-shim{display:none}div[data-ephox-embed-iri] .mce-shim{position:absolute;top:0;left:0;width:100%;height:100%;background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}div[data-ephox-embed-iri]{position:relative}div[data-ephox-embed-iri] iframe,div[data-ephox-embed-iri] video,div[data-ephox-embed-iri] audio{display:block}
|
4
plugins/mediaembed/plugin.min.js
vendored
4
plugins/mediaembed/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
4
plugins/mentions/plugin.min.js
vendored
4
plugins/mentions/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
2
plugins/mergetags/plugin.min.js
vendored
2
plugins/mergetags/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
24
plugins/pageembed/css/empa30.css
Normal file
24
plugins/pageembed/css/empa30.css
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*!
|
||||||
|
* Tiny Page Embed plugin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*
|
||||||
|
* Version: 7.0.0-22
|
||||||
|
*/
|
||||||
|
|
||||||
|
.tiny-pageembed.tiny-pageembed--21by9 {
|
||||||
|
padding-top: 42.857143%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiny-pageembed.tiny-pageembed--16by9 {
|
||||||
|
padding-top: 56.25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiny-pageembed.tiny-pageembed--4by3 {
|
||||||
|
padding-top: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiny-pageembed.tiny-pageembed--1by1 {
|
||||||
|
padding-top: 100%;
|
||||||
|
}
|
3797
plugins/powerpaste/js/wordimport.js
Normal file
3797
plugins/powerpaste/js/wordimport.js
Normal file
File diff suppressed because one or more lines are too long
10
plugins/tinycomments/css/tinycomments.css
Normal file
10
plugins/tinycomments/css/tinycomments.css
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*!
|
||||||
|
* Tiny Comments plugin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*
|
||||||
|
* Version: 7.0.0-22
|
||||||
|
*/
|
||||||
|
|
||||||
|
.tox .tox-conversations{display:flex;flex-direction:column;position:relative}.tox .tox-conversations__header{align-items:center;display:flex;justify-content:space-between}.tox .tox-conversations__title{font-size:20px;font-weight:400;padding:8px 0 8px 0}.tox-comment__scroll .tox-comment.tox-comment--disappearing{transition:opacity .5s ease}.tox-comment__scroll .tox-comment[data-transitioning-destination="deleting"]{opacity:0}.tox .tox-comment__body{max-height:7em;overflow:hidden;transition:max-height .5s cubic-bezier(0, 1, 0, 1);position:relative}.tox .tox-comment__body.tox-comment__body--expanded{max-height:100em;transition:max-height 1s ease-in-out}.tox .tox-comment .tox-comment__body.tox-comment__body--pending{transition:max-height 0s}.tox .tox-conversations{min-width:300px;max-width:300px;width:300px}.tox .tox-comment:focus{background-color:rgba(34,47,62,0.1)}.tox .tox-comment__expander p:focus{font-weight:bold}
|
10
plugins/tinycomments/js/tinycomments-sidebar.min.js
vendored
Normal file
10
plugins/tinycomments/js/tinycomments-sidebar.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
plugins/tinycomments/plugin.min.js
vendored
2
plugins/tinycomments/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
6
plugins/typography/plugin.min.js
vendored
6
plugins/typography/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,28 +1,58 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import {writeFileSync, mkdirSync} from "fs";
|
import {writeFileSync, mkdirSync, existsSync} from "fs";
|
||||||
import {resolve} from "path";
|
import {resolve, dirname} from "path";
|
||||||
|
|
||||||
const freeKey = "qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc"
|
const freeKey = "qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc";
|
||||||
const dirWhitelist = ["scripts", ".vscode"];
|
const skins = ["dark", "default", "document", "tinymce-5", "tinymce-5-dark", "writer"];
|
||||||
const pluginList = 'ai tinycomments mentions anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount checklist mediaembed casechange export formatpainter pageembed permanentpen footnotes advtemplate advtable advcode editimage tableofcontents mergetags powerpaste tinymcespellchecker autocorrect a11ychecker typography inlinecss';
|
const uis = ["oxide", "oxide-dark", "tinymce-5", "tinymce-5-dark"];
|
||||||
|
const pluginList = "a11ychecker advcode advtable advtemplate typography ai casechange checklist tinycomments editimage mediaembed export footnotes formatpainter inlinecss linkchecker mentions mergetags moxiemanager pageembed permanentpen powerpaste rtc tinymcespellchecker autocorrect tableofcontents tinydrive accordion advlist anchor autolink autoresize autosave charmap code codesample directionality emoticons fullscreen help image importcss insertdatetime link lists media nonbreaking pagebreak preview quickbars save searchreplace table template visualblocks visualchars wordcount";
|
||||||
|
const base = `https://cdn.tiny.cloud/1/${freeKey}/tinymce/7`
|
||||||
|
|
||||||
|
let headers = {
|
||||||
|
Referer: "http://tiny.cloud"
|
||||||
|
}
|
||||||
|
|
||||||
|
async function fetchAux(path) {
|
||||||
|
const wpath = resolve(`..${path}`)
|
||||||
|
if(!existsSync(wpath)) mkdirSync(dirname(wpath), {recursive: true})
|
||||||
|
let {data: d} = await axios.get(`${base}${path}`, {headers});
|
||||||
|
writeFileSync(wpath, d);
|
||||||
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
let headers = {
|
|
||||||
Referer: "http://tiny.cloud"
|
|
||||||
}
|
|
||||||
let base = `https://cdn.tiny.cloud/1/${freeKey}/tinymce/6`
|
|
||||||
let {data: mainScript} = await axios.get(`${base}/tinymce.min.js`, {headers})
|
let {data: mainScript} = await axios.get(`${base}/tinymce.min.js`, {headers})
|
||||||
|
// writeFileSync(resolve("../models/dom/model.min.js"), (await axios.get(`${base}/models/dom/model.min.js`, {headers})).data)
|
||||||
writeFileSync(resolve("../tinymce.min.js"), mainScript);
|
writeFileSync(resolve("../tinymce.min.js"), mainScript);
|
||||||
let {data: ts} = await axios.get(`${base}/tinymce.min.js`, {headers})
|
await fetchAux("/tinymce.d.ts");
|
||||||
writeFileSync(resolve("../tinymce.d.ts"), ts);
|
await fetchAux("/models/dom/model.min.js");
|
||||||
|
await fetchAux("/icons/default/icons.min.js");
|
||||||
|
await fetchAux("/plugins/powerpaste/js/wordimport.js");
|
||||||
|
await fetchAux("/plugins/a11ychecker/css/annotations.css");
|
||||||
|
await fetchAux("/plugins/pageembed/css/empa30.css");
|
||||||
|
await fetchAux("/plugins/mediaembed/content.min.css");
|
||||||
|
await fetchAux("/plugins/tinycomments/css/tinycomments.css");
|
||||||
|
await fetchAux("/plugins/tinycomments/js/tinycomments-sidebar.min.js");
|
||||||
|
for(let t of skins) {
|
||||||
|
await fetchAux(`/skins/content/${t}/content.min.css`)
|
||||||
|
}
|
||||||
|
for(let u of uis) {
|
||||||
|
for(let c of [
|
||||||
|
"content.inline.min.css",
|
||||||
|
"content.min.css",
|
||||||
|
"skin.min.css",
|
||||||
|
"skin.shadowdom.min.css"
|
||||||
|
]) {
|
||||||
|
await fetchAux(`/skins/ui/${u}/${c}`)
|
||||||
|
}
|
||||||
|
}
|
||||||
for(let p of pluginList.split(" ")) {
|
for(let p of pluginList.split(" ")) {
|
||||||
let {data} = await axios.get(`${base}/plugins/${p}/plugin.min.js`, {headers});
|
let {data} = await axios.get(`${base}/plugins/${p}/plugin.min.js`, {headers});
|
||||||
mkdirSync(resolve(`../plugins/${p}`), {recursive: true})
|
if(!existsSync(resolve(`../plugins/${p}`))) mkdirSync(resolve(`../plugins/${p}`), {recursive: true})
|
||||||
writeFileSync(resolve(`../plugins/${p}/plugin.min.js`), data)
|
writeFileSync(resolve(`../plugins/${p}/plugin.min.js`), data)
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
process.exit()
|
process.exit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
main()
|
main()
|
||||||
|
6
skins/content/dark/content.min.css
vendored
6
skins/content/dark/content.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body{background-color:#222f3e;color:#fff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}a{color:#4099ff}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#6d737b}figure{display:table;margin:1rem auto}figure figcaption{color:#8a8f97;display:block;margin-top:.25rem;text-align:center}hr{border-color:#6d737b;border-style:solid;border-width:1px 0 0 0}code{background-color:#6d737b;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #6d737b;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #6d737b;margin-right:1.5rem;padding-right:1rem}
|
body{background-color:#222f3e;color:#fff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}a{color:#4099ff}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#6d737b}figure{display:table;margin:1rem auto}figure figcaption{color:#8a8f97;display:block;margin-top:.25rem;text-align:center}hr{border-color:#6d737b;border-style:solid;border-width:1px 0 0 0}code{background-color:#6d737b;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #6d737b;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #6d737b;margin-right:1.5rem;padding-right:1rem}
|
||||||
|
6
skins/content/default/content.min.css
vendored
6
skins/content/default/content.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
||||||
|
6
skins/content/document/content.min.css
vendored
6
skins/content/document/content.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
@media screen{html{background:#f4f4f4;min-height:100%}}body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif}@media screen{body{background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.15);box-sizing:border-box;margin:1rem auto 0;max-width:820px;min-height:calc(100vh - 1rem);padding:4rem 6rem 6rem 6rem}}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure figcaption{color:#999;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
@media screen{html{background:#f4f4f4;min-height:100%}}body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif}@media screen{body{background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.15);box-sizing:border-box;margin:1rem auto 0;max-width:820px;min-height:calc(100vh - 1rem);padding:4rem 6rem 6rem 6rem}}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure figcaption{color:#999;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
||||||
|
6
skins/content/tinymce-5-dark/content.min.css
vendored
6
skins/content/tinymce-5-dark/content.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body{background-color:#2f3742;color:#dfe0e4;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}a{color:#4099ff}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#6d737b}figure{display:table;margin:1rem auto}figure figcaption{color:#8a8f97;display:block;margin-top:.25rem;text-align:center}hr{border-color:#6d737b;border-style:solid;border-width:1px 0 0 0}code{background-color:#6d737b;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #6d737b;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #6d737b;margin-right:1.5rem;padding-right:1rem}
|
body{background-color:#2f3742;color:#dfe0e4;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}a{color:#4099ff}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#6d737b}figure{display:table;margin:1rem auto}figure figcaption{color:#8a8f97;display:block;margin-top:.25rem;text-align:center}hr{border-color:#6d737b;border-style:solid;border-width:1px 0 0 0}code{background-color:#6d737b;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #6d737b;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #6d737b;margin-right:1.5rem;padding-right:1rem}
|
||||||
|
6
skins/content/tinymce-5/content.min.css
vendored
6
skins/content/tinymce-5/content.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
||||||
|
6
skins/content/writer/content.min.css
vendored
6
skins/content/writer/content.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem auto;max-width:900px}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem auto;max-width:900px}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}
|
||||||
|
6
skins/ui/oxide-dark/content.inline.min.css
vendored
6
skins/ui/oxide-dark/content.inline.min.css
vendored
File diff suppressed because one or more lines are too long
6
skins/ui/oxide-dark/content.min.css
vendored
6
skins/ui/oxide-dark/content.min.css
vendored
File diff suppressed because one or more lines are too long
8
skins/ui/oxide-dark/skin.min.css
vendored
8
skins/ui/oxide-dark/skin.min.css
vendored
File diff suppressed because one or more lines are too long
6
skins/ui/oxide-dark/skin.shadowdom.min.css
vendored
6
skins/ui/oxide-dark/skin.shadowdom.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
||||||
|
6
skins/ui/oxide/content.inline.min.css
vendored
6
skins/ui/oxide/content.inline.min.css
vendored
File diff suppressed because one or more lines are too long
6
skins/ui/oxide/content.min.css
vendored
6
skins/ui/oxide/content.min.css
vendored
File diff suppressed because one or more lines are too long
8
skins/ui/oxide/skin.min.css
vendored
8
skins/ui/oxide/skin.min.css
vendored
File diff suppressed because one or more lines are too long
6
skins/ui/oxide/skin.shadowdom.min.css
vendored
6
skins/ui/oxide/skin.shadowdom.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
||||||
|
File diff suppressed because one or more lines are too long
6
skins/ui/tinymce-5-dark/content.min.css
vendored
6
skins/ui/tinymce-5-dark/content.min.css
vendored
File diff suppressed because one or more lines are too long
8
skins/ui/tinymce-5-dark/skin.min.css
vendored
8
skins/ui/tinymce-5-dark/skin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
||||||
|
6
skins/ui/tinymce-5/content.inline.min.css
vendored
6
skins/ui/tinymce-5/content.inline.min.css
vendored
File diff suppressed because one or more lines are too long
6
skins/ui/tinymce-5/content.min.css
vendored
6
skins/ui/tinymce-5/content.min.css
vendored
File diff suppressed because one or more lines are too long
8
skins/ui/tinymce-5/skin.min.css
vendored
8
skins/ui/tinymce-5/skin.min.css
vendored
File diff suppressed because one or more lines are too long
6
skins/ui/tinymce-5/skin.shadowdom.min.css
vendored
6
skins/ui/tinymce-5/skin.shadowdom.min.css
vendored
@ -1 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* TinyMCE Skin
|
||||||
|
*
|
||||||
|
* Copyright (c) 2024 Ephox Corporation DBA Tiny Technologies, Inc.
|
||||||
|
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
||||||
|
*/
|
||||||
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
||||||
|
58
tinymce.d.ts
vendored
58
tinymce.d.ts
vendored
@ -149,9 +149,10 @@ interface ElementSettings {
|
|||||||
void_elements?: string;
|
void_elements?: string;
|
||||||
whitespace_elements?: string;
|
whitespace_elements?: string;
|
||||||
transparent_elements?: string;
|
transparent_elements?: string;
|
||||||
|
wrap_block_elements?: string;
|
||||||
}
|
}
|
||||||
interface SchemaSettings extends ElementSettings {
|
interface SchemaSettings extends ElementSettings {
|
||||||
custom_elements?: string;
|
custom_elements?: string | Record<string, CustomElementSpec>;
|
||||||
extended_valid_elements?: string;
|
extended_valid_elements?: string;
|
||||||
invalid_elements?: string;
|
invalid_elements?: string;
|
||||||
invalid_styles?: string | Record<string, string>;
|
invalid_styles?: string | Record<string, string>;
|
||||||
@ -199,6 +200,12 @@ interface SchemaMap {
|
|||||||
interface SchemaRegExpMap {
|
interface SchemaRegExpMap {
|
||||||
[name: string]: RegExp;
|
[name: string]: RegExp;
|
||||||
}
|
}
|
||||||
|
interface CustomElementSpec {
|
||||||
|
extends?: string;
|
||||||
|
attributes?: string[];
|
||||||
|
children?: string[];
|
||||||
|
padEmpty?: boolean;
|
||||||
|
}
|
||||||
interface Schema {
|
interface Schema {
|
||||||
type: SchemaType;
|
type: SchemaType;
|
||||||
children: Record<string, SchemaMap>;
|
children: Record<string, SchemaMap>;
|
||||||
@ -220,10 +227,13 @@ interface Schema {
|
|||||||
getSpecialElements: () => SchemaRegExpMap;
|
getSpecialElements: () => SchemaRegExpMap;
|
||||||
isValidChild: (name: string, child: string) => boolean;
|
isValidChild: (name: string, child: string) => boolean;
|
||||||
isValid: (name: string, attr?: string) => boolean;
|
isValid: (name: string, attr?: string) => boolean;
|
||||||
|
isBlock: (name: string) => boolean;
|
||||||
|
isInline: (name: string) => boolean;
|
||||||
|
isWrapper: (name: string) => boolean;
|
||||||
getCustomElements: () => SchemaMap;
|
getCustomElements: () => SchemaMap;
|
||||||
addValidElements: (validElements: string) => void;
|
addValidElements: (validElements: string) => void;
|
||||||
setValidElements: (validElements: string) => void;
|
setValidElements: (validElements: string) => void;
|
||||||
addCustomElements: (customElements: string) => void;
|
addCustomElements: (customElements: string | Record<string, CustomElementSpec>) => void;
|
||||||
addValidChildren: (validChildren: any) => void;
|
addValidChildren: (validChildren: any) => void;
|
||||||
}
|
}
|
||||||
type Attributes$1 = Array<{
|
type Attributes$1 = Array<{
|
||||||
@ -370,6 +380,12 @@ interface Annotator {
|
|||||||
removeAll: (name: string) => void;
|
removeAll: (name: string) => void;
|
||||||
getAll: (name: string) => Record<string, Element[]>;
|
getAll: (name: string) => Record<string, Element[]>;
|
||||||
}
|
}
|
||||||
|
interface IsEmptyOptions {
|
||||||
|
readonly skipBogus?: boolean;
|
||||||
|
readonly includeZwsp?: boolean;
|
||||||
|
readonly checkRootAsContent?: boolean;
|
||||||
|
readonly isContent?: (node: Node) => boolean;
|
||||||
|
}
|
||||||
interface GeomRect {
|
interface GeomRect {
|
||||||
readonly x: number;
|
readonly x: number;
|
||||||
readonly y: number;
|
readonly y: number;
|
||||||
@ -396,7 +412,6 @@ interface NotificationSpec {
|
|||||||
icon?: string;
|
icon?: string;
|
||||||
progressBar?: boolean;
|
progressBar?: boolean;
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
closeButton?: boolean;
|
|
||||||
}
|
}
|
||||||
interface NotificationApi {
|
interface NotificationApi {
|
||||||
close: () => void;
|
close: () => void;
|
||||||
@ -425,6 +440,7 @@ interface UploadResult$2 {
|
|||||||
status: boolean;
|
status: boolean;
|
||||||
error?: UploadFailure;
|
error?: UploadFailure;
|
||||||
}
|
}
|
||||||
|
type BlockPatternTrigger = 'enter' | 'space';
|
||||||
interface RawPattern {
|
interface RawPattern {
|
||||||
start?: any;
|
start?: any;
|
||||||
end?: any;
|
end?: any;
|
||||||
@ -432,6 +448,7 @@ interface RawPattern {
|
|||||||
cmd?: any;
|
cmd?: any;
|
||||||
value?: any;
|
value?: any;
|
||||||
replacement?: any;
|
replacement?: any;
|
||||||
|
trigger?: BlockPatternTrigger;
|
||||||
}
|
}
|
||||||
interface InlineBasePattern {
|
interface InlineBasePattern {
|
||||||
readonly start: string;
|
readonly start: string;
|
||||||
@ -449,6 +466,7 @@ interface InlineCmdPattern extends InlineBasePattern {
|
|||||||
type InlinePattern = InlineFormatPattern | InlineCmdPattern;
|
type InlinePattern = InlineFormatPattern | InlineCmdPattern;
|
||||||
interface BlockBasePattern {
|
interface BlockBasePattern {
|
||||||
readonly start: string;
|
readonly start: string;
|
||||||
|
readonly trigger: BlockPatternTrigger;
|
||||||
}
|
}
|
||||||
interface BlockFormatPattern extends BlockBasePattern {
|
interface BlockFormatPattern extends BlockBasePattern {
|
||||||
readonly type: 'block-format';
|
readonly type: 'block-format';
|
||||||
@ -527,6 +545,7 @@ interface CustomEditorNewSpec extends FormComponentSpec {
|
|||||||
tag?: string;
|
tag?: string;
|
||||||
scriptId: string;
|
scriptId: string;
|
||||||
scriptUrl: string;
|
scriptUrl: string;
|
||||||
|
onFocus?: (e: HTMLElement) => void;
|
||||||
settings?: any;
|
settings?: any;
|
||||||
}
|
}
|
||||||
type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
|
type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
|
||||||
@ -635,6 +654,7 @@ interface BaseToolbarButtonInstanceApi {
|
|||||||
interface ToolbarButtonSpec extends BaseToolbarButtonSpec<ToolbarButtonInstanceApi> {
|
interface ToolbarButtonSpec extends BaseToolbarButtonSpec<ToolbarButtonInstanceApi> {
|
||||||
type?: 'button';
|
type?: 'button';
|
||||||
onAction: (api: ToolbarButtonInstanceApi) => void;
|
onAction: (api: ToolbarButtonInstanceApi) => void;
|
||||||
|
shortcut?: string;
|
||||||
}
|
}
|
||||||
interface ToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
interface ToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
||||||
}
|
}
|
||||||
@ -776,6 +796,7 @@ interface NestedMenuItemSpec extends CommonMenuItemSpec {
|
|||||||
onSetup?: (api: NestedMenuItemInstanceApi) => (api: NestedMenuItemInstanceApi) => void;
|
onSetup?: (api: NestedMenuItemInstanceApi) => (api: NestedMenuItemInstanceApi) => void;
|
||||||
}
|
}
|
||||||
interface NestedMenuItemInstanceApi extends CommonMenuItemInstanceApi {
|
interface NestedMenuItemInstanceApi extends CommonMenuItemInstanceApi {
|
||||||
|
setTooltip: (tooltip: string) => void;
|
||||||
setIconFill: (id: string, value: string) => void;
|
setIconFill: (id: string, value: string) => void;
|
||||||
}
|
}
|
||||||
type MenuButtonItemTypes = NestedMenuItemContents;
|
type MenuButtonItemTypes = NestedMenuItemContents;
|
||||||
@ -831,6 +852,7 @@ interface ToolbarSplitButtonInstanceApi {
|
|||||||
setIconFill: (id: string, value: string) => void;
|
setIconFill: (id: string, value: string) => void;
|
||||||
isActive: () => boolean;
|
isActive: () => boolean;
|
||||||
setActive: (state: boolean) => void;
|
setActive: (state: boolean) => void;
|
||||||
|
setTooltip: (tooltip: string) => void;
|
||||||
setText: (text: string) => void;
|
setText: (text: string) => void;
|
||||||
setIcon: (icon: string) => void;
|
setIcon: (icon: string) => void;
|
||||||
}
|
}
|
||||||
@ -844,6 +866,7 @@ interface BaseToolbarToggleButtonInstanceApi extends BaseToolbarButtonInstanceAp
|
|||||||
interface ToolbarToggleButtonSpec extends BaseToolbarToggleButtonSpec<ToolbarToggleButtonInstanceApi> {
|
interface ToolbarToggleButtonSpec extends BaseToolbarToggleButtonSpec<ToolbarToggleButtonInstanceApi> {
|
||||||
type?: 'togglebutton';
|
type?: 'togglebutton';
|
||||||
onAction: (api: ToolbarToggleButtonInstanceApi) => void;
|
onAction: (api: ToolbarToggleButtonInstanceApi) => void;
|
||||||
|
shortcut?: string;
|
||||||
}
|
}
|
||||||
interface ToolbarToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
interface ToolbarToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
||||||
}
|
}
|
||||||
@ -876,6 +899,7 @@ interface UrlInputSpec extends FormComponentWithLabelSpec {
|
|||||||
type: 'urlinput';
|
type: 'urlinput';
|
||||||
filetype?: 'image' | 'media' | 'file';
|
filetype?: 'image' | 'media' | 'file';
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
|
picker_text?: string;
|
||||||
}
|
}
|
||||||
interface UrlInputData {
|
interface UrlInputData {
|
||||||
value: string;
|
value: string;
|
||||||
@ -1018,8 +1042,7 @@ interface AutocompleterItemSpec {
|
|||||||
type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec;
|
type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec;
|
||||||
interface AutocompleterSpec {
|
interface AutocompleterSpec {
|
||||||
type?: 'autocompleter';
|
type?: 'autocompleter';
|
||||||
ch?: string;
|
trigger: string;
|
||||||
trigger?: string;
|
|
||||||
minChars?: number;
|
minChars?: number;
|
||||||
columns?: ColumnTypes;
|
columns?: ColumnTypes;
|
||||||
matches?: (rng: Range, text: string, pattern: string) => boolean;
|
matches?: (rng: Range, text: string, pattern: string) => boolean;
|
||||||
@ -1368,6 +1391,7 @@ interface DomParserSettings {
|
|||||||
allow_unsafe_link_target?: boolean;
|
allow_unsafe_link_target?: boolean;
|
||||||
blob_cache?: BlobCache;
|
blob_cache?: BlobCache;
|
||||||
convert_fonts_to_spans?: boolean;
|
convert_fonts_to_spans?: boolean;
|
||||||
|
convert_unsafe_embeds?: boolean;
|
||||||
document?: Document;
|
document?: Document;
|
||||||
fix_list_elements?: boolean;
|
fix_list_elements?: boolean;
|
||||||
font_size_legacy_values?: string;
|
font_size_legacy_values?: string;
|
||||||
@ -1376,8 +1400,9 @@ interface DomParserSettings {
|
|||||||
inline_styles?: boolean;
|
inline_styles?: boolean;
|
||||||
pad_empty_with_br?: boolean;
|
pad_empty_with_br?: boolean;
|
||||||
preserve_cdata?: boolean;
|
preserve_cdata?: boolean;
|
||||||
remove_trailing_brs?: boolean;
|
|
||||||
root_name?: string;
|
root_name?: string;
|
||||||
|
sandbox_iframes?: boolean;
|
||||||
|
sandbox_iframes_exclusions?: string[];
|
||||||
sanitize?: boolean;
|
sanitize?: boolean;
|
||||||
validate?: boolean;
|
validate?: boolean;
|
||||||
}
|
}
|
||||||
@ -1398,8 +1423,10 @@ interface StyleSheetLoaderSettings {
|
|||||||
}
|
}
|
||||||
interface StyleSheetLoader {
|
interface StyleSheetLoader {
|
||||||
load: (url: string) => Promise<void>;
|
load: (url: string) => Promise<void>;
|
||||||
|
loadRawCss: (key: string, css: string) => void;
|
||||||
loadAll: (urls: string[]) => Promise<string[]>;
|
loadAll: (urls: string[]) => Promise<string[]>;
|
||||||
unload: (url: string) => void;
|
unload: (url: string) => void;
|
||||||
|
unloadRawCss: (key: string) => void;
|
||||||
unloadAll: (urls: string[]) => void;
|
unloadAll: (urls: string[]) => void;
|
||||||
_setReferrerPolicy: (referrerPolicy: ReferrerPolicy) => void;
|
_setReferrerPolicy: (referrerPolicy: ReferrerPolicy) => void;
|
||||||
_setContentCssCors: (contentCssCors: boolean) => void;
|
_setContentCssCors: (contentCssCors: boolean) => void;
|
||||||
@ -1582,6 +1609,8 @@ interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
|
|||||||
};
|
};
|
||||||
'resize': UIEvent;
|
'resize': UIEvent;
|
||||||
'scroll': UIEvent;
|
'scroll': UIEvent;
|
||||||
|
'input': InputEvent;
|
||||||
|
'beforeinput': InputEvent;
|
||||||
'detach': {};
|
'detach': {};
|
||||||
'remove': {};
|
'remove': {};
|
||||||
'init': {};
|
'init': {};
|
||||||
@ -1824,11 +1853,13 @@ interface BaseEditorOptions {
|
|||||||
contextmenu?: string | string[] | false;
|
contextmenu?: string | string[] | false;
|
||||||
contextmenu_never_use_native?: boolean;
|
contextmenu_never_use_native?: boolean;
|
||||||
convert_fonts_to_spans?: boolean;
|
convert_fonts_to_spans?: boolean;
|
||||||
|
convert_unsafe_embeds?: boolean;
|
||||||
convert_urls?: boolean;
|
convert_urls?: boolean;
|
||||||
custom_colors?: boolean;
|
custom_colors?: boolean;
|
||||||
custom_elements?: string;
|
custom_elements?: string | Record<string, CustomElementSpec>;
|
||||||
custom_ui_selector?: string;
|
custom_ui_selector?: string;
|
||||||
custom_undo_redo_levels?: number;
|
custom_undo_redo_levels?: number;
|
||||||
|
default_font_stack?: string[];
|
||||||
deprecation_warnings?: boolean;
|
deprecation_warnings?: boolean;
|
||||||
directionality?: 'ltr' | 'rtl';
|
directionality?: 'ltr' | 'rtl';
|
||||||
doctype?: string;
|
doctype?: string;
|
||||||
@ -1936,6 +1967,8 @@ interface BaseEditorOptions {
|
|||||||
resize?: boolean | 'both';
|
resize?: boolean | 'both';
|
||||||
resize_img_proportional?: boolean;
|
resize_img_proportional?: boolean;
|
||||||
root_name?: string;
|
root_name?: string;
|
||||||
|
sandbox_iframes?: boolean;
|
||||||
|
sandbox_iframes_exclusions?: string[];
|
||||||
schema?: SchemaType;
|
schema?: SchemaType;
|
||||||
selector?: string;
|
selector?: string;
|
||||||
setup?: SetupCallback;
|
setup?: SetupCallback;
|
||||||
@ -1985,6 +2018,7 @@ interface BaseEditorOptions {
|
|||||||
visual_table_class?: string;
|
visual_table_class?: string;
|
||||||
width?: number | string;
|
width?: number | string;
|
||||||
xss_sanitization?: boolean;
|
xss_sanitization?: boolean;
|
||||||
|
license_key?: string;
|
||||||
disable_nodechange?: boolean;
|
disable_nodechange?: boolean;
|
||||||
forced_plugins?: string | string[];
|
forced_plugins?: string | string[];
|
||||||
plugin_base_urls?: Record<string, string>;
|
plugin_base_urls?: Record<string, string>;
|
||||||
@ -2019,7 +2053,9 @@ interface EditorOptions extends NormalizedEditorOptions {
|
|||||||
color_default_foreground: string;
|
color_default_foreground: string;
|
||||||
content_css: string[];
|
content_css: string[];
|
||||||
contextmenu: string[];
|
contextmenu: string[];
|
||||||
|
convert_unsafe_embeds: boolean;
|
||||||
custom_colors: boolean;
|
custom_colors: boolean;
|
||||||
|
default_font_stack: string[];
|
||||||
document_base_url: string;
|
document_base_url: string;
|
||||||
init_content_sync: boolean;
|
init_content_sync: boolean;
|
||||||
draggable_modal: boolean;
|
draggable_modal: boolean;
|
||||||
@ -2067,6 +2103,8 @@ interface EditorOptions extends NormalizedEditorOptions {
|
|||||||
promotion: boolean;
|
promotion: boolean;
|
||||||
readonly: boolean;
|
readonly: boolean;
|
||||||
removed_menuitems: string;
|
removed_menuitems: string;
|
||||||
|
sandbox_iframes: boolean;
|
||||||
|
sandbox_iframes_exclusions: string[];
|
||||||
toolbar: boolean | string | string[] | Array<ToolbarGroup>;
|
toolbar: boolean | string | string[] | Array<ToolbarGroup>;
|
||||||
toolbar_groups: Record<string, GroupToolbarButtonSpec>;
|
toolbar_groups: Record<string, GroupToolbarButtonSpec>;
|
||||||
toolbar_location: ToolbarLocation;
|
toolbar_location: ToolbarLocation;
|
||||||
@ -2266,9 +2304,7 @@ interface DOMUtils {
|
|||||||
findCommonAncestor: (a: Node, b: Node) => Node | null;
|
findCommonAncestor: (a: Node, b: Node) => Node | null;
|
||||||
run<R, T extends Node>(this: DOMUtils, elm: T | T[], func: (node: T) => R, scope?: any): typeof elm extends Array<any> ? R[] : R;
|
run<R, T extends Node>(this: DOMUtils, elm: T | T[], func: (node: T) => R, scope?: any): typeof elm extends Array<any> ? R[] : R;
|
||||||
run<R, T extends Node>(this: DOMUtils, elm: RunArguments<T>, func: (node: T) => R, scope?: any): RunResult<typeof elm, R>;
|
run<R, T extends Node>(this: DOMUtils, elm: RunArguments<T>, func: (node: T) => R, scope?: any): RunResult<typeof elm, R>;
|
||||||
isEmpty: (node: Node, elements?: Record<string, any>, options?: ({
|
isEmpty: (node: Node, elements?: Record<string, any>, options?: IsEmptyOptions) => boolean;
|
||||||
includeZwsp?: boolean;
|
|
||||||
})) => boolean;
|
|
||||||
createRng: () => Range;
|
createRng: () => Range;
|
||||||
nodeIndex: (node: Node, normalized?: boolean) => number;
|
nodeIndex: (node: Node, normalized?: boolean) => number;
|
||||||
split: {
|
split: {
|
||||||
@ -3030,6 +3066,8 @@ interface IconManager {
|
|||||||
interface Resource {
|
interface Resource {
|
||||||
load: <T = any>(id: string, url: string) => Promise<T>;
|
load: <T = any>(id: string, url: string) => Promise<T>;
|
||||||
add: (id: string, data: any) => void;
|
add: (id: string, data: any) => void;
|
||||||
|
has: (id: string) => boolean;
|
||||||
|
get: (id: string) => any;
|
||||||
unload: (id: string) => void;
|
unload: (id: string) => void;
|
||||||
}
|
}
|
||||||
type TextPatterns_d_Pattern = Pattern;
|
type TextPatterns_d_Pattern = Pattern;
|
||||||
|
54
tinymce.min.js
vendored
54
tinymce.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user