tinymce-rails 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad9f52ed3dbb843cde200a6bba21f4ef53f504fca9ee04b8ac7080b6b8a2f49
|
4
|
+
data.tar.gz: 3c88496cff852ff962a4639fa7852aacf6148e68a6ad572ec2f543957d68c982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccd01a2c308e3d598870a2197a9217395a083bfbfb6e43a4c1da3379c46a0269454e2dde68f67592250ed337e5b463081107871d2a3c97ca8d61f058eb2dae3b
|
7
|
+
data.tar.gz: a8a7592448cf0a664c768f8a3f4986fac9be1bd007dde606b02e18ae1c5aaf86a2b0bf3e7e3cc78ffe8ace85354603f042b0e3ca2abc301179cbce5ee2a3b3c6
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* TinyMCE version 8.0.
|
2
|
+
* TinyMCE version 8.0.1 (2025-07-28)
|
3
3
|
*/
|
4
4
|
|
5
5
|
(function () {
|
@@ -20739,8 +20739,8 @@
|
|
20739
20739
|
const pluginsMessage = hasRemovedPlugins ? `\n\nPlugins:${listJoiner}${removedPlugins.join(listJoiner)}` : '';
|
20740
20740
|
const optionsMessage = hasRemovedOptions ? `\n\nOptions:${listJoiner}${removedOptions.join(listJoiner)}` : '';
|
20741
20741
|
// eslint-disable-next-line no-console
|
20742
|
-
console.warn('The following deprecated features are currently enabled and have been removed in TinyMCE
|
20743
|
-
'See https://www.tiny.cloud/docs/tinymce/
|
20742
|
+
console.warn('The following deprecated features are currently enabled and have been removed in TinyMCE 8.0. These features will no longer work and should be removed from the TinyMCE configuration. ' +
|
20743
|
+
'See https://www.tiny.cloud/docs/tinymce/8/migration-from-7x/ for more information.' +
|
20744
20744
|
themesMessage +
|
20745
20745
|
pluginsMessage +
|
20746
20746
|
optionsMessage);
|
@@ -24185,7 +24185,7 @@
|
|
24185
24185
|
* @method open
|
24186
24186
|
* @param {Object} args A <code>name: value</code> collection containing settings such as: <code>timeout</code>, <code>type</code>, and message (<code>text</code>).
|
24187
24187
|
* <br /><br />
|
24188
|
-
* For information on the available settings, see: <a href="https://www.tiny.cloud/docs/tinymce/
|
24188
|
+
* For information on the available settings, see: <a href="https://www.tiny.cloud/docs/tinymce/8/creating-custom-notifications/">Create custom notifications</a>.
|
24189
24189
|
*/
|
24190
24190
|
open,
|
24191
24191
|
/**
|
@@ -24316,8 +24316,8 @@
|
|
24316
24316
|
* Opens a new window.
|
24317
24317
|
*
|
24318
24318
|
* @method open
|
24319
|
-
* @param {Object} config For information on the available options, see: <a href="https://www.tiny.cloud/docs/tinymce/
|
24320
|
-
* @param {Object} params (Optional) For information on the available options, see: <a href="https://www.tiny.cloud/docs/tinymce/
|
24319
|
+
* @param {Object} config For information on the available options, see: <a href="https://www.tiny.cloud/docs/tinymce/8/dialog-configuration/#options">Dialog - Configuration options</a>.
|
24320
|
+
* @param {Object} params (Optional) For information on the available options, see: <a href="https://www.tiny.cloud/docs/tinymce/8/dialog-configuration/#configuration-parameters">Dialog - Configuration parameters</a>.
|
24321
24321
|
* @returns {WindowManager.DialogInstanceApi} A new dialog instance.
|
24322
24322
|
*/
|
24323
24323
|
open,
|
@@ -24325,7 +24325,7 @@
|
|
24325
24325
|
* Opens a new window for the specified url.
|
24326
24326
|
*
|
24327
24327
|
* @method openUrl
|
24328
|
-
* @param {Object} config For information on the available options, see: <a href="https://www.tiny.cloud/docs/tinymce/
|
24328
|
+
* @param {Object} config For information on the available options, see: <a href="https://www.tiny.cloud/docs/tinymce/8/urldialog/#configuration">URL dialog - Configuration</a>.
|
24329
24329
|
* @returns {WindowManager.UrlDialogInstanceApi} A new URL dialog instance.
|
24330
24330
|
*/
|
24331
24331
|
openUrl,
|
@@ -38467,7 +38467,7 @@
|
|
38467
38467
|
const Observable = {
|
38468
38468
|
/**
|
38469
38469
|
* Fires the specified event by name. Consult the
|
38470
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
38470
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/events/">event reference</a> for more details on each event.
|
38471
38471
|
* <br>
|
38472
38472
|
* <em>Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 9.0. Use <code>dispatch</code> instead.</em>
|
38473
38473
|
*
|
@@ -38486,7 +38486,7 @@
|
|
38486
38486
|
},
|
38487
38487
|
/**
|
38488
38488
|
* Dispatches the specified event by name. Consult the
|
38489
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
38489
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/events/">event reference</a> for more details on each event.
|
38490
38490
|
*
|
38491
38491
|
* @method dispatch
|
38492
38492
|
* @param {String} name Name of the event to dispatch.
|
@@ -38515,7 +38515,7 @@
|
|
38515
38515
|
},
|
38516
38516
|
/**
|
38517
38517
|
* Binds an event listener to a specific event by name. Consult the
|
38518
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
38518
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/events/">event reference</a> for more details on each event.
|
38519
38519
|
*
|
38520
38520
|
* @method on
|
38521
38521
|
* @param {String} name Event name or space separated list of events to bind.
|
@@ -38532,7 +38532,7 @@
|
|
38532
38532
|
},
|
38533
38533
|
/**
|
38534
38534
|
* Unbinds an event listener to a specific event by name. Consult the
|
38535
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
38535
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/events/">event reference</a> for more details on each event.
|
38536
38536
|
*
|
38537
38537
|
* @method off
|
38538
38538
|
* @param {String?} name Name of the event to unbind.
|
@@ -38553,7 +38553,7 @@
|
|
38553
38553
|
},
|
38554
38554
|
/**
|
38555
38555
|
* Bind the event callback and once it fires the callback is removed. Consult the
|
38556
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
38556
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/events/">event reference</a> for more details on each event.
|
38557
38557
|
*
|
38558
38558
|
* @method once
|
38559
38559
|
* @param {String} name Name of the event to bind.
|
@@ -39273,7 +39273,7 @@
|
|
39273
39273
|
* Emoticons and Charmap use an autocompleter.
|
39274
39274
|
* <br>
|
39275
39275
|
* For information on creating an autocompleter, see:
|
39276
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39276
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/autocompleter/">
|
39277
39277
|
* UI Components - Autocompleter</a>.
|
39278
39278
|
*
|
39279
39279
|
* @method addAutocompleter
|
@@ -39286,7 +39286,7 @@
|
|
39286
39286
|
* via keyboard navigation controls.
|
39287
39287
|
* <br>
|
39288
39288
|
* For information on creating a basic toolbar button, see:
|
39289
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39289
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-basic-toolbar-button/">
|
39290
39290
|
* UI Components - Types of toolbar buttons: Basic button</a>.
|
39291
39291
|
*
|
39292
39292
|
* @method addButton
|
@@ -39303,7 +39303,7 @@
|
|
39303
39303
|
* contextual input form appears allowing for quick changes to the url field.
|
39304
39304
|
* <br>
|
39305
39305
|
* For information on creating context forms, see:
|
39306
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39306
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/contextform/">
|
39307
39307
|
* UI Components - Context forms</a>.
|
39308
39308
|
*
|
39309
39309
|
* @method addContextForm
|
@@ -39316,7 +39316,7 @@
|
|
39316
39316
|
* for example, the cursor is inside a table.
|
39317
39317
|
* <br>
|
39318
39318
|
* For information on creating context menus, see:
|
39319
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39319
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/contextmenu/">
|
39320
39320
|
* UI Components - Context Menu</a>.
|
39321
39321
|
*
|
39322
39322
|
* @method addContextMenu
|
@@ -39329,7 +39329,7 @@
|
|
39329
39329
|
* the cursor is on an image element.
|
39330
39330
|
* <br>
|
39331
39331
|
* For information on creating context toolbars, see:
|
39332
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39332
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/contexttoolbar/">
|
39333
39333
|
* UI Components - Context Toolbar</a>.
|
39334
39334
|
*
|
39335
39335
|
* @method addContextToolbar
|
@@ -39356,7 +39356,7 @@
|
|
39356
39356
|
* addNestedMenuItem or addToggleMenuItem.
|
39357
39357
|
* <br>
|
39358
39358
|
* For information on creating a toolbar menu button, see:
|
39359
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39359
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-menu-toolbar-button/">
|
39360
39360
|
* UI Components - Types of toolbar buttons: Menu button</a>.
|
39361
39361
|
*
|
39362
39362
|
* @method addMenuButton
|
@@ -39369,7 +39369,7 @@
|
|
39369
39369
|
* via keyboard navigation controls.
|
39370
39370
|
* <br>
|
39371
39371
|
* For information on creating a basic menu item, see:
|
39372
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39372
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/creating-custom-menu-items/">
|
39373
39373
|
* UI Components - Custom menu items: Basic menu items</a>.
|
39374
39374
|
*
|
39375
39375
|
* @method addMenuItem
|
@@ -39383,7 +39383,7 @@
|
|
39383
39383
|
* created by addMenuItem, addNestedMenuItem or addToggleMenuItem.
|
39384
39384
|
* <br>
|
39385
39385
|
* For information on creating a nested menu item, see:
|
39386
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39386
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-nested-menu-items/">
|
39387
39387
|
* UI Components - Custom menu items: Nested menu items</a>.
|
39388
39388
|
*
|
39389
39389
|
* @method addNestedMenuItem
|
@@ -39401,7 +39401,7 @@
|
|
39401
39401
|
* sidebar for its Ui components.
|
39402
39402
|
* <br>
|
39403
39403
|
* For information on creating a custom sidebar, see:
|
39404
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39404
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/customsidebar/">
|
39405
39405
|
* UI Components - Custom sidebar</a>.
|
39406
39406
|
*
|
39407
39407
|
* @method addSidebar
|
@@ -39414,7 +39414,7 @@
|
|
39414
39414
|
* a split button to simplify its functionality.
|
39415
39415
|
* <br>
|
39416
39416
|
* For information on creating a split toolbar button, see:
|
39417
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39417
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-split-toolbar-button/">
|
39418
39418
|
* UI Components - Types of toolbar buttons: Split button</a>.
|
39419
39419
|
*
|
39420
39420
|
* @method addSplitButton
|
@@ -39427,7 +39427,7 @@
|
|
39427
39427
|
* be set in the configuration.
|
39428
39428
|
* <br>
|
39429
39429
|
* For information on creating a toggle toolbar button, see:
|
39430
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39430
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-toggle-toolbar-button/">
|
39431
39431
|
* UI Components - Types of toolbar buttons: Toggle button</a>.
|
39432
39432
|
*
|
39433
39433
|
* @method addToggleButton
|
@@ -39442,7 +39442,7 @@
|
|
39442
39442
|
* <strong>Note:</strong> Group toolbar buttons can only be used when using the floating toolbar mode.
|
39443
39443
|
* <br>
|
39444
39444
|
* For information on creating a group toolbar button, see:
|
39445
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39445
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-group-toolbar-button/">
|
39446
39446
|
* UI Components - Types of toolbar buttons: Group toolbar button</a>.
|
39447
39447
|
*
|
39448
39448
|
* @method addGroupToolbarButton
|
@@ -39455,7 +39455,7 @@
|
|
39455
39455
|
* showing a tick in the menu item to represent state.
|
39456
39456
|
* <br>
|
39457
39457
|
* For information on creating a toggle menu item, see:
|
39458
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39458
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-toggle-menu-items/">
|
39459
39459
|
* UI Components - Custom menu items: Toggle menu items</a>.
|
39460
39460
|
*
|
39461
39461
|
* @method addToggleMenuItem
|
@@ -39474,7 +39474,7 @@
|
|
39474
39474
|
* The ToggleView command can be queried for its current state.
|
39475
39475
|
* <br>
|
39476
39476
|
* For information on creating a custom view, see:
|
39477
|
-
* <a href="https://www.tiny.cloud/docs/tinymce/
|
39477
|
+
* <a href="https://www.tiny.cloud/docs/tinymce/8/custom-view/">
|
39478
39478
|
* UI Components - Custom view</a>.
|
39479
39479
|
*
|
39480
39480
|
* @method addView
|
@@ -40330,14 +40330,14 @@
|
|
40330
40330
|
* @property minorVersion
|
40331
40331
|
* @type String
|
40332
40332
|
*/
|
40333
|
-
minorVersion: '0.
|
40333
|
+
minorVersion: '0.1',
|
40334
40334
|
/**
|
40335
40335
|
* Release date of TinyMCE build.
|
40336
40336
|
*
|
40337
40337
|
* @property releaseDate
|
40338
40338
|
* @type String
|
40339
40339
|
*/
|
40340
|
-
releaseDate: '
|
40340
|
+
releaseDate: '2025-07-28',
|
40341
40341
|
/**
|
40342
40342
|
* Collection of language pack data.
|
40343
40343
|
*
|
@@ -40482,7 +40482,7 @@
|
|
40482
40482
|
/**
|
40483
40483
|
* Initializes a set of editors. This method will create editors based on various settings.
|
40484
40484
|
* <br /><br />
|
40485
|
-
* For information on basic usage of <code>init</code>, see: <a href="https://www.tiny.cloud/docs/tinymce/
|
40485
|
+
* For information on basic usage of <code>init</code>, see: <a href="https://www.tiny.cloud/docs/tinymce/8/basic-setup/">Basic setup</a>.
|
40486
40486
|
*
|
40487
40487
|
* @method init
|
40488
40488
|
* @param {Object} options Options object to be passed to each editor instance.
|
@@ -40524,7 +40524,7 @@
|
|
40524
40524
|
const findTargets = (options) => {
|
40525
40525
|
if (Env.browser.isIE() || Env.browser.isEdge()) {
|
40526
40526
|
initError('TinyMCE does not support the browser you are using. For a list of supported' +
|
40527
|
-
' browsers please see: https://www.tiny.cloud/docs/tinymce/
|
40527
|
+
' browsers please see: https://www.tiny.cloud/docs/tinymce/8/support/#supportedwebbrowsers');
|
40528
40528
|
return [];
|
40529
40529
|
}
|
40530
40530
|
else if (isQuirksMode) {
|
@@ -1 +1 @@
|
|
1
|
-
!function(){"use strict";const e=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=a=e,(r=String).prototype.isPrototypeOf(n)||(null===(o=a.constructor)||void 0===o?void 0:o.name)===r.name)?"string":t;var n,a,r,o})(e);const t=e=>undefined===e;const n=e=>"function"==typeof e,a=()=>false;class r{constructor(e,t){this.tag=e,this.value=t}static some(e){return new r(!0,e)}static none(){return r.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?r.some(e(this.value)):r.none()}bind(e){return this.tag?e(this.value):r.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:r.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?r.none():r.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}r.singletonNone=new r(!1);const o=Array.prototype.slice,i=Array.prototype.indexOf,s=(e,t)=>{const n=e.length,a=new Array(n);for(let r=0;r<n;r++){const n=e[r];a[r]=t(n,r)}return a},m=(e,t)=>{const n=[];for(let a=0,r=e.length;a<r;a++){const r=e[a];t(r,a)&&n.push(r)}return n},c=(e,t)=>{const n=o.call(e,0);return n.sort(t),n};n(Array.from)&&Array.from;const l=Object.keys,u=Object.hasOwnProperty,p=(e,t)=>u.call(e,t);let y=0;const h=e=>{const t=(new Date).getTime(),n=Math.floor(window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295*1e9);return y++,e+"_"+n+y+String(t)};var d=tinymce.util.Tools.resolve("tinymce.PluginManager");const g=e=>t=>t.options.get(e),k=g("help_tabs"),v=g("forced_plugins");var b=tinymce.util.Tools.resolve("tinymce.Resource"),f=tinymce.util.Tools.resolve("tinymce.util.I18n");const A=(e,t)=>b.load(`tinymce.html-i18n.help-keynav.${t}`,`${e}/js/i18n/keynav/${t}.js`),w=e=>A(e,f.getCode()).catch((()=>A(e,"en")));var C=tinymce.util.Tools.resolve("tinymce.Env");const S=e=>{const t=C.os.isMacOS()||C.os.isiOS(),n=t?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl ",access:"Shift + Alt "},a=e.split("+"),r=s(a,(e=>{const t=e.toLowerCase().trim();return p(n,t)?n[t]:e}));return t?r.join("").replace(/\s/,""):r.join("+")},M=[{shortcuts:["Meta + B"],action:"Bold"},{shortcuts:["Meta + I"],action:"Italic"},{shortcuts:["Meta + U"],action:"Underline"},{shortcuts:["Meta + A"],action:"Select all"},{shortcuts:["Meta + Y","Meta + Shift + Z"],action:"Redo"},{shortcuts:["Meta + Z"],action:"Undo"},{shortcuts:["Access + 1"],action:"Heading 1"},{shortcuts:["Access + 2"],action:"Heading 2"},{shortcuts:["Access + 3"],action:"Heading 3"},{shortcuts:["Access + 4"],action:"Heading 4"},{shortcuts:["Access + 5"],action:"Heading 5"},{shortcuts:["Access + 6"],action:"Heading 6"},{shortcuts:["Access + 7"],action:"Paragraph"},{shortcuts:["Access + 8"],action:"Div"},{shortcuts:["Access + 9"],action:"Address"},{shortcuts:["Alt + 0"],action:"Open help dialog"},{shortcuts:["Alt + F9"],action:"Focus to menubar"},{shortcuts:["Alt + F10"],action:"Focus to toolbar"},{shortcuts:["Alt + F11"],action:"Focus to element path"},{shortcuts:["Alt + F12"],action:"Focus to notification"},{shortcuts:["Ctrl + F9"],action:"Focus to contextual toolbar"},{shortcuts:["Shift + Enter"],action:"Open popup menu for split buttons"},{shortcuts:["Meta + K"],action:"Insert link (if link plugin activated)"},{shortcuts:["Meta + S"],action:"Save (if save plugin activated)"},{shortcuts:["Meta + F"],action:"Find (if searchreplace plugin activated)"},{shortcuts:["Meta + Shift + F"],action:"Switch to or from fullscreen mode"}],_=()=>({name:"shortcuts",title:"Handy Shortcuts",items:[{type:"table",header:["Action","Shortcut"],cells:s(M,(e=>{const t=s(e.shortcuts,S).join(" or ");return[e.action,t]}))}]}),x=s([{key:"accordion",name:"Accordion"},{key:"anchor",name:"Anchor"},{key:"autolink",name:"Autolink"},{key:"autoresize",name:"Autoresize"},{key:"autosave",name:"Autosave"},{key:"charmap",name:"Character Map"},{key:"code",name:"Code"},{key:"codesample",name:"Code Sample"},{key:"colorpicker",name:"Color Picker"},{key:"directionality",name:"Directionality"},{key:"emoticons",name:"Emoticons"},{key:"fullscreen",name:"Full Screen"},{key:"help",name:"Help"},{key:"image",name:"Image"},{key:"importcss",name:"Import CSS"},{key:"insertdatetime",name:"Insert Date/Time"},{key:"link",name:"Link"},{key:"lists",name:"Lists"},{key:"advlist",name:"List Styles"},{key:"media",name:"Media"},{key:"nonbreaking",name:"Nonbreaking"},{key:"pagebreak",name:"Page Break"},{key:"preview",name:"Preview"},{key:"quickbars",name:"Quick Toolbars"},{key:"save",name:"Save"},{key:"searchreplace",name:"Search and Replace"},{key:"table",name:"Table"},{key:"textcolor",name:"Text Color"},{key:"visualblocks",name:"Visual Blocks"},{key:"visualchars",name:"Visual Characters"},{key:"wordcount",name:"Word Count"},{key:"a11ychecker",name:"Accessibility Checker",type:"premium"},{key:"typography",name:"Advanced Typography",type:"premium",slug:"advanced-typography"},{key:"ai",name:"AI Assistant",type:"premium"},{key:"casechange",name:"Case Change",type:"premium"},{key:"checklist",name:"Checklist",type:"premium"},{key:"advcode",name:"Enhanced Code Editor",type:"premium"},{key:"mediaembed",name:"Enhanced Media Embed",type:"premium",slug:"introduction-to-mediaembed"},{key:"advtable",name:"Enhanced Tables",type:"premium"},{key:"exportpdf",name:"Export to PDF",type:"premium"},{key:"exportword",name:"Export to Word",type:"premium"},{key:"footnotes",name:"Footnotes",type:"premium"},{key:"formatpainter",name:"Format Painter",type:"premium"},{key:"editimage",name:"Image Editing",type:"premium"},{key:"uploadcare",name:"Image Optimizer Powered by Uploadcare",type:"premium"},{key:"importword",name:"Import from Word",type:"premium"},{key:"inlinecss",name:"Inline CSS",type:"premium",slug:"inline-css"},{key:"linkchecker",name:"Link Checker",type:"premium"},{key:"math",name:"Math",type:"premium"},{key:"markdown",name:"Markdown",type:"premium"},{key:"mentions",name:"Mentions",type:"premium"},{key:"mergetags",name:"Merge Tags",type:"premium"},{key:"pageembed",name:"Page Embed",type:"premium"},{key:"permanentpen",name:"Permanent Pen",type:"premium"},{key:"powerpaste",name:"PowerPaste",type:"premium",slug:"introduction-to-powerpaste"},{key:"revisionhistory",name:"Revision History",type:"premium"},{key:"tinymcespellchecker",name:"Spell Checker",type:"premium",slug:"introduction-to-tiny-spellchecker"},{key:"suggestededits",name:"Suggested Edits",type:"premium"},{key:"autocorrect",name:"Spelling Autocorrect",type:"premium"},{key:"tableofcontents",name:"Table of Contents",type:"premium"},{key:"advtemplate",name:"Templates",type:"premium",slug:"advanced-templates"},{key:"tinycomments",name:"Tiny Comments",type:"premium",slug:"introduction-to-tiny-comments"},{key:"tinydrive",name:"Tiny Drive",type:"premium",slug:"tinydrive-introduction"}],(e=>({...e,type:e.type||"opensource",slug:e.slug||e.key}))),T=e=>{const o=e=>`<a data-alloy-tabstop="true" tabindex="-1" href="${e.url}" target="_blank" rel="noopener">${e.name}</a>`,u=(e,t)=>{return(i=x,s=e=>e.key===t,((e,t,n)=>{for(let a=0,o=e.length;a<o;a++){const o=e[a];if(t(o,a))return r.some(o);if(n(o,a))break}return r.none()})(i,s,a)).fold((()=>((e,t)=>{const a=e.plugins[t].getMetadata;if(n(a)){const e=a();return{name:e.name,html:o(e)}}return{name:t,html:t}})(e,t)),(e=>{const t="premium"===e.type?`${e.name}*`:e.name;return{name:t,html:o({name:t,url:`https://www.tiny.cloud/docs/tinymce/${tinymce.majorVersion}/${e.slug}/`})}}));var i,s},p=e=>{const n=(e=>{const n=l(e.plugins),a=v(e),r=t(a)?["onboarding"]:a.concat(["onboarding"]);return m(n,(e=>!(((e,t)=>i.call(e,t))(r,e)>-1)))})(e),a=c(s(n,(t=>u(e,t))),((e,t)=>e.name.localeCompare(t.name))),r=s(a,(e=>"<li>"+e.html+"</li>")),o=r.length,p=r.join("");return"<p><b>"+f.translate(["Plugins installed ({0}):",o])+"</b></p><ul>"+p+"</ul>"},y={type:"htmlpanel",presets:"document",html:[(e=>null==e?"":"<div>"+p(e)+"</div>")(e),(()=>{const e=m(x,(({type:e})=>"premium"===e)),t=c(s(e,(e=>e.name)),((e,t)=>e.localeCompare(t))),n=s(t,(e=>`<li>${e}</li>`)).join("");return"<div><p><b>"+f.translate("Premium plugins:")+"</b></p><ul>"+n+'<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=help_dialog_plugin_tab&utm_source=tiny&utm_medium=referral&utm_term=read_more&utm_content=premium_plugin_heading" rel="noopener" target="_blank" data-alloy-tabstop="true" tabindex="-1">'+f.translate("Learn more...")+"</a></li></ul></div>"})()].join("")};return{name:"plugins",title:"Plugins",items:[y]}};var O=tinymce.util.Tools.resolve("tinymce.EditorManager");const P=(t,n,a)=>()=>{(async(t,n,a)=>{const o=_(),i=await(async e=>({name:"keyboardnav",title:"Keyboard Navigation",items:[{type:"htmlpanel",presets:"document",html:await w(e)}]}))(a),m=T(t),c=(()=>{var e,t;const n='<a data-alloy-tabstop="true" tabindex="-1" href="https://www.tiny.cloud/docs/tinymce/7/changelog/?utm_campaign=help_dialog_version_tab&utm_source=tiny&utm_medium=referral" rel="noopener" target="_blank">TinyMCE '+(e=O.majorVersion,t=O.minorVersion,(0===e.indexOf("@")?"X.X.X":e+"."+t)+"</a>");return{name:"versions",title:"Version",items:[{type:"htmlpanel",html:"<p>"+f.translate(["You are using {0}",n])+"</p>",presets:"document"}]}})(),u={[o.name]:o,[i.name]:i,[m.name]:m,[c.name]:c,...n.get()};return r.from(k(t)).fold((()=>(e=>{const t=l(e),n=t.indexOf("versions");return-1!==n&&(t.splice(n,1),t.push("versions")),{tabs:e,names:t}})(u)),(t=>((t,n)=>{const a={},r=s(t,(t=>{var r;if(e(t))return p(n,t)&&(a[t]=n[t]),t;{const e=null!==(r=t.name)&&void 0!==r?r:h("tab-name");return a[e]=t,e}}));return{tabs:a,names:r}})(t,u)))})(t,n,a).then((({tabs:e,names:n})=>{const a={type:"tabpanel",tabs:(e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t})(s(n,(t=>{return p(n=e,a=t)?r.from(n[a]):r.none();var n,a})))};t.windowManager.open({title:"Help",size:"medium",body:a,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}))};d.add("help",((e,t)=>{const n=(()=>{let e={};return{get:()=>e,set:t=>{e=t}}})(),a=(e=>({addTab:t=>{var n;const a=null!==(n=t.name)&&void 0!==n?n:h("tab-name"),r=e.get();r[a]=t,e.set(r)}}))(n);(e=>{(0,e.options.register)("help_tabs",{processor:"array"})})(e);const r=P(e,n,t);return((e,t)=>{e.ui.registry.addButton("help",{icon:"help",tooltip:"Help",onAction:t,context:"any"}),e.ui.registry.addMenuItem("help",{text:"Help",icon:"help",shortcut:"Alt+0",onAction:t,context:"any"})})(e,r),((e,t)=>{e.addCommand("mceHelp",t)})(e,r),e.shortcuts.add("Alt+0","Open help dialog","mceHelp"),((e,t)=>{e.on("init",(()=>{w(t)}))})(e,t),a}))}();
|
1
|
+
!function(){"use strict";const e=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=a=e,(r=String).prototype.isPrototypeOf(n)||(null===(o=a.constructor)||void 0===o?void 0:o.name)===r.name)?"string":t;var n,a,r,o})(e);const t=e=>undefined===e;const n=e=>"function"==typeof e,a=()=>false;class r{constructor(e,t){this.tag=e,this.value=t}static some(e){return new r(!0,e)}static none(){return r.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?r.some(e(this.value)):r.none()}bind(e){return this.tag?e(this.value):r.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:r.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?r.none():r.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}r.singletonNone=new r(!1);const o=Array.prototype.slice,i=Array.prototype.indexOf,s=(e,t)=>{const n=e.length,a=new Array(n);for(let r=0;r<n;r++){const n=e[r];a[r]=t(n,r)}return a},m=(e,t)=>{const n=[];for(let a=0,r=e.length;a<r;a++){const r=e[a];t(r,a)&&n.push(r)}return n},c=(e,t)=>{const n=o.call(e,0);return n.sort(t),n};n(Array.from)&&Array.from;const l=Object.keys,u=Object.hasOwnProperty,p=(e,t)=>u.call(e,t);let y=0;const h=e=>{const t=(new Date).getTime(),n=Math.floor(window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295*1e9);return y++,e+"_"+n+y+String(t)};var d=tinymce.util.Tools.resolve("tinymce.PluginManager");const g=e=>t=>t.options.get(e),k=g("help_tabs"),v=g("forced_plugins");var b=tinymce.util.Tools.resolve("tinymce.Resource"),f=tinymce.util.Tools.resolve("tinymce.util.I18n");const A=(e,t)=>b.load(`tinymce.html-i18n.help-keynav.${t}`,`${e}/js/i18n/keynav/${t}.js`),w=e=>A(e,f.getCode()).catch((()=>A(e,"en")));var C=tinymce.util.Tools.resolve("tinymce.Env");const S=e=>{const t=C.os.isMacOS()||C.os.isiOS(),n=t?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl ",access:"Shift + Alt "},a=e.split("+"),r=s(a,(e=>{const t=e.toLowerCase().trim();return p(n,t)?n[t]:e}));return t?r.join("").replace(/\s/,""):r.join("+")},M=[{shortcuts:["Meta + B"],action:"Bold"},{shortcuts:["Meta + I"],action:"Italic"},{shortcuts:["Meta + U"],action:"Underline"},{shortcuts:["Meta + A"],action:"Select all"},{shortcuts:["Meta + Y","Meta + Shift + Z"],action:"Redo"},{shortcuts:["Meta + Z"],action:"Undo"},{shortcuts:["Access + 1"],action:"Heading 1"},{shortcuts:["Access + 2"],action:"Heading 2"},{shortcuts:["Access + 3"],action:"Heading 3"},{shortcuts:["Access + 4"],action:"Heading 4"},{shortcuts:["Access + 5"],action:"Heading 5"},{shortcuts:["Access + 6"],action:"Heading 6"},{shortcuts:["Access + 7"],action:"Paragraph"},{shortcuts:["Access + 8"],action:"Div"},{shortcuts:["Access + 9"],action:"Address"},{shortcuts:["Alt + 0"],action:"Open help dialog"},{shortcuts:["Alt + F9"],action:"Focus to menubar"},{shortcuts:["Alt + F10"],action:"Focus to toolbar"},{shortcuts:["Alt + F11"],action:"Focus to element path"},{shortcuts:["Alt + F12"],action:"Focus to notification"},{shortcuts:["Ctrl + F9"],action:"Focus to contextual toolbar"},{shortcuts:["Shift + Enter"],action:"Open popup menu for split buttons"},{shortcuts:["Meta + K"],action:"Insert link (if link plugin activated)"},{shortcuts:["Meta + S"],action:"Save (if save plugin activated)"},{shortcuts:["Meta + F"],action:"Find (if searchreplace plugin activated)"},{shortcuts:["Meta + Shift + F"],action:"Switch to or from fullscreen mode"}],_=()=>({name:"shortcuts",title:"Handy Shortcuts",items:[{type:"table",header:["Action","Shortcut"],cells:s(M,(e=>{const t=s(e.shortcuts,S).join(" or ");return[e.action,t]}))}]}),x=s([{key:"accordion",name:"Accordion"},{key:"anchor",name:"Anchor"},{key:"autolink",name:"Autolink"},{key:"autoresize",name:"Autoresize"},{key:"autosave",name:"Autosave"},{key:"charmap",name:"Character Map"},{key:"code",name:"Code"},{key:"codesample",name:"Code Sample"},{key:"colorpicker",name:"Color Picker"},{key:"directionality",name:"Directionality"},{key:"emoticons",name:"Emoticons"},{key:"fullscreen",name:"Full Screen"},{key:"help",name:"Help"},{key:"image",name:"Image"},{key:"importcss",name:"Import CSS"},{key:"insertdatetime",name:"Insert Date/Time"},{key:"link",name:"Link"},{key:"lists",name:"Lists"},{key:"advlist",name:"List Styles"},{key:"media",name:"Media"},{key:"nonbreaking",name:"Nonbreaking"},{key:"pagebreak",name:"Page Break"},{key:"preview",name:"Preview"},{key:"quickbars",name:"Quick Toolbars"},{key:"save",name:"Save"},{key:"searchreplace",name:"Search and Replace"},{key:"table",name:"Table"},{key:"textcolor",name:"Text Color"},{key:"visualblocks",name:"Visual Blocks"},{key:"visualchars",name:"Visual Characters"},{key:"wordcount",name:"Word Count"},{key:"a11ychecker",name:"Accessibility Checker",type:"premium"},{key:"typography",name:"Advanced Typography",type:"premium",slug:"advanced-typography"},{key:"ai",name:"AI Assistant",type:"premium"},{key:"casechange",name:"Case Change",type:"premium"},{key:"checklist",name:"Checklist",type:"premium"},{key:"advcode",name:"Enhanced Code Editor",type:"premium"},{key:"mediaembed",name:"Enhanced Media Embed",type:"premium",slug:"introduction-to-mediaembed"},{key:"advtable",name:"Enhanced Tables",type:"premium"},{key:"exportpdf",name:"Export to PDF",type:"premium"},{key:"exportword",name:"Export to Word",type:"premium"},{key:"footnotes",name:"Footnotes",type:"premium"},{key:"formatpainter",name:"Format Painter",type:"premium"},{key:"editimage",name:"Image Editing",type:"premium"},{key:"uploadcare",name:"Image Optimizer Powered by Uploadcare",type:"premium"},{key:"importword",name:"Import from Word",type:"premium"},{key:"inlinecss",name:"Inline CSS",type:"premium",slug:"inline-css"},{key:"linkchecker",name:"Link Checker",type:"premium"},{key:"math",name:"Math",type:"premium"},{key:"markdown",name:"Markdown",type:"premium"},{key:"mentions",name:"Mentions",type:"premium"},{key:"mergetags",name:"Merge Tags",type:"premium"},{key:"pageembed",name:"Page Embed",type:"premium"},{key:"permanentpen",name:"Permanent Pen",type:"premium"},{key:"powerpaste",name:"PowerPaste",type:"premium",slug:"introduction-to-powerpaste"},{key:"revisionhistory",name:"Revision History",type:"premium"},{key:"tinymcespellchecker",name:"Spell Checker",type:"premium",slug:"introduction-to-tiny-spellchecker"},{key:"suggestededits",name:"Suggested Edits",type:"premium"},{key:"autocorrect",name:"Spelling Autocorrect",type:"premium"},{key:"tableofcontents",name:"Table of Contents",type:"premium"},{key:"advtemplate",name:"Templates",type:"premium",slug:"advanced-templates"},{key:"tinycomments",name:"Tiny Comments",type:"premium",slug:"introduction-to-tiny-comments"},{key:"tinydrive",name:"Tiny Drive",type:"premium",slug:"tinydrive-introduction"}],(e=>({...e,type:e.type||"opensource",slug:e.slug||e.key}))),T=e=>{const o=e=>`<a data-alloy-tabstop="true" tabindex="-1" href="${e.url}" target="_blank" rel="noopener">${e.name}</a>`,u=(e,t)=>{return(i=x,s=e=>e.key===t,((e,t,n)=>{for(let a=0,o=e.length;a<o;a++){const o=e[a];if(t(o,a))return r.some(o);if(n(o,a))break}return r.none()})(i,s,a)).fold((()=>((e,t)=>{const a=e.plugins[t].getMetadata;if(n(a)){const e=a();return{name:e.name,html:o(e)}}return{name:t,html:t}})(e,t)),(e=>{const t="premium"===e.type?`${e.name}*`:e.name;return{name:t,html:o({name:t,url:`https://www.tiny.cloud/docs/tinymce/${tinymce.majorVersion}/${e.slug}/`})}}));var i,s},p=e=>{const n=(e=>{const n=l(e.plugins),a=v(e),r=t(a)?["onboarding"]:a.concat(["onboarding"]);return m(n,(e=>!(((e,t)=>i.call(e,t))(r,e)>-1)))})(e),a=c(s(n,(t=>u(e,t))),((e,t)=>e.name.localeCompare(t.name))),r=s(a,(e=>"<li>"+e.html+"</li>")),o=r.length,p=r.join("");return"<p><b>"+f.translate(["Plugins installed ({0}):",o])+"</b></p><ul>"+p+"</ul>"},y={type:"htmlpanel",presets:"document",html:[(e=>null==e?"":"<div>"+p(e)+"</div>")(e),(()=>{const e=m(x,(({type:e})=>"premium"===e)),t=c(s(e,(e=>e.name)),((e,t)=>e.localeCompare(t))),n=s(t,(e=>`<li>${e}</li>`)).join("");return"<div><p><b>"+f.translate("Premium plugins:")+"</b></p><ul>"+n+'<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=help_dialog_plugin_tab&utm_source=tiny&utm_medium=referral&utm_term=read_more&utm_content=premium_plugin_heading" rel="noopener" target="_blank" data-alloy-tabstop="true" tabindex="-1">'+f.translate("Learn more...")+"</a></li></ul></div>"})()].join("")};return{name:"plugins",title:"Plugins",items:[y]}};var O=tinymce.util.Tools.resolve("tinymce.EditorManager");const P=(t,n,a)=>()=>{(async(t,n,a)=>{const o=_(),i=await(async e=>({name:"keyboardnav",title:"Keyboard Navigation",items:[{type:"htmlpanel",presets:"document",html:await w(e)}]}))(a),m=T(t),c=(()=>{var e,t;const n='<a data-alloy-tabstop="true" tabindex="-1" href="https://www.tiny.cloud/docs/tinymce/8/changelog/?utm_campaign=help_dialog_version_tab&utm_source=tiny&utm_medium=referral" rel="noopener" target="_blank">TinyMCE '+(e=O.majorVersion,t=O.minorVersion,(0===e.indexOf("@")?"X.X.X":e+"."+t)+"</a>");return{name:"versions",title:"Version",items:[{type:"htmlpanel",html:"<p>"+f.translate(["You are using {0}",n])+"</p>",presets:"document"}]}})(),u={[o.name]:o,[i.name]:i,[m.name]:m,[c.name]:c,...n.get()};return r.from(k(t)).fold((()=>(e=>{const t=l(e),n=t.indexOf("versions");return-1!==n&&(t.splice(n,1),t.push("versions")),{tabs:e,names:t}})(u)),(t=>((t,n)=>{const a={},r=s(t,(t=>{var r;if(e(t))return p(n,t)&&(a[t]=n[t]),t;{const e=null!==(r=t.name)&&void 0!==r?r:h("tab-name");return a[e]=t,e}}));return{tabs:a,names:r}})(t,u)))})(t,n,a).then((({tabs:e,names:n})=>{const a={type:"tabpanel",tabs:(e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t})(s(n,(t=>{return p(n=e,a=t)?r.from(n[a]):r.none();var n,a})))};t.windowManager.open({title:"Help",size:"medium",body:a,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}))};d.add("help",((e,t)=>{const n=(()=>{let e={};return{get:()=>e,set:t=>{e=t}}})(),a=(e=>({addTab:t=>{var n;const a=null!==(n=t.name)&&void 0!==n?n:h("tab-name"),r=e.get();r[a]=t,e.set(r)}}))(n);(e=>{(0,e.options.register)("help_tabs",{processor:"array"})})(e);const r=P(e,n,t);return((e,t)=>{e.ui.registry.addButton("help",{icon:"help",tooltip:"Help",onAction:t,context:"any"}),e.ui.registry.addMenuItem("help",{text:"Help",icon:"help",shortcut:"Alt+0",onAction:t,context:"any"})})(e,r),((e,t)=>{e.addCommand("mceHelp",t)})(e,r),e.shortcuts.add("Alt+0","Open help dialog","mceHelp"),((e,t)=>{e.on("init",(()=>{w(t)}))})(e,t),a}))}();
|