@tinymce/tinymce-jquery 1.0.1 → 2.0.0-rc.20220408065339523.shae1b4aa9
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.
- package/CHANGELOG.md +7 -2
- package/dist/tinymce-jquery.js +1 -1
- package/dist/tinymce-jquery.min.js +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -6,11 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## 2.0.0 - 2022-04-08
|
|
10
|
+
### Changed
|
|
11
|
+
- Set default cloudChannel to 6
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 1.0.1 - 2022-03-15
|
|
10
15
|
### Fixed
|
|
11
16
|
- Set release version in changelog.
|
|
12
17
|
|
|
13
|
-
## 1.0.0
|
|
18
|
+
## 1.0.0 - 2022-03-15
|
|
14
19
|
### Added
|
|
15
20
|
- Initial release of the TinyMCE jQuery integration as a separate node module.
|
|
16
21
|
|
package/dist/tinymce-jquery.js
CHANGED
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
if (typeof settings.script_url === 'string') {
|
|
432
432
|
return settings.script_url;
|
|
433
433
|
} else {
|
|
434
|
-
var channel = typeof settings.channel === 'string' ? settings.channel : '
|
|
434
|
+
var channel = typeof settings.channel === 'string' ? settings.channel : '6';
|
|
435
435
|
var apiKey = typeof settings.api_key === 'string' ? settings.api_key : 'no-api-key';
|
|
436
436
|
return 'https://cdn.tiny.cloud/1/'.concat(apiKey, '/tinymce/').concat(channel, '/tinymce.min.js');
|
|
437
437
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},t="undefined"!=typeof window?window:Function("return this;")(),e=function(){var n;return null!=(n=t&&t.jQuery)?n:null},a=function(){var n=e();if(null!=n)return n;throw new Error("Expected global jQuery")};const r=(n,t,e)=>{return!!e(n,t.prototype)||(null==(e=n.constructor)?void 0:e.name)===t.name};var i,n=t=>n=>(n=>{var t=typeof n;return null===n?"null":"object"==t&&Array.isArray(n)?"array":"object"==t&&r(n,String,(n,t)=>t.isPrototypeOf(n))?"string":t})(n)===t;const f=n("string"),o=n("object"),u=n("array"),s=(i="function",n=>typeof n===i),v=Object.keys,h=Object.hasOwnProperty,c="undefined"!=typeof window?window:Function("return this;")(),p=(n,e)=>{n=n.split(".");{var r=n;let t=null!=(n=e)?n:c;for(let n=0;n<r.length&&void 0!==t&&null!==t;++n)t=t[r[n]];return t}},d=(n,t)=>{e=n,t=t;var e=p(e,t);if(null==e)throw new Error(n+" not available on this browser");return e},y=Object.getPrototypeOf,g=n=>{var t=p("ownerDocument.defaultView",n);return o(n)&&(t=t,d("HTMLElement",t).prototype.isPrototypeOf(n)||/^HTML\w*Element$/.test(y(n).constructor.name))};function m(){var n;return null!=(n=t.tinymce)?n:null}function O(n,t,e){var r=j(n);return r?t(r):e?e(n):void 0}function w(e,r){e.each(function(n,t){return O(t,function(n){return r(n,t,e)})})}function D(n){var o,c;c=function(n){return n.remove()},(o=n).each(function(n,t){for(var e=0,r=L().get();e<r.length;e++){var i=r[e];if($.contains(t,i.getContentAreaContainer())&&!1===c(i,t,o))return!1}})}function _(n){w(n,function(n){return n.remove()}),D(n)}function I(u){return function(){for(var t=this,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];function r(i){void 0!==i&&(D(t),t.each(function(e,r){return O(r,function(n){var t=s(i)?i.call(r,e,n.getContent()):i;void 0!==t&&n.setContent(null===t?"":"".concat(t))},function(n){var t;s(i)?(t=u.call($(n),"value"),t=i.call(n,e,t),u.call($(n),"value",t)):u.call($(n),"value",i)})}))}var i,o=n[0];if(f(o)){if("value"!==o)return u.apply(this,n);var c=n[1];return void 0!==c?(r(c),this):1<=this.length?O(this[0],function(n){return n.getContent()},function(n){return u.call(t,"value")}):void 0}return c=l({},o),o=c,i="value",h.call(o,i)&&(r(c.value),delete c.value),0<v(c).length?u.call(this,c):this}}function
|
|
1
|
+
!function(){"use strict";var l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},t="undefined"!=typeof window?window:Function("return this;")(),e=function(){var n;return null!=(n=t&&t.jQuery)?n:null},a=function(){var n=e();if(null!=n)return n;throw new Error("Expected global jQuery")};const r=(n,t,e)=>{return!!e(n,t.prototype)||(null==(e=n.constructor)?void 0:e.name)===t.name};var i,n=t=>n=>(n=>{var t=typeof n;return null===n?"null":"object"==t&&Array.isArray(n)?"array":"object"==t&&r(n,String,(n,t)=>t.isPrototypeOf(n))?"string":t})(n)===t;const f=n("string"),o=n("object"),u=n("array"),s=(i="function",n=>typeof n===i),v=Object.keys,h=Object.hasOwnProperty,c="undefined"!=typeof window?window:Function("return this;")(),p=(n,e)=>{n=n.split(".");{var r=n;let t=null!=(n=e)?n:c;for(let n=0;n<r.length&&void 0!==t&&null!==t;++n)t=t[r[n]];return t}},d=(n,t)=>{e=n,t=t;var e=p(e,t);if(null==e)throw new Error(n+" not available on this browser");return e},y=Object.getPrototypeOf,g=n=>{var t=p("ownerDocument.defaultView",n);return o(n)&&(t=t,d("HTMLElement",t).prototype.isPrototypeOf(n)||/^HTML\w*Element$/.test(y(n).constructor.name))};function m(){var n;return null!=(n=t.tinymce)?n:null}function O(n,t,e){var r=j(n);return r?t(r):e?e(n):void 0}function w(e,r){e.each(function(n,t){return O(t,function(n){return r(n,t,e)})})}function D(n){var o,c;c=function(n){return n.remove()},(o=n).each(function(n,t){for(var e=0,r=L().get();e<r.length;e++){var i=r[e];if($.contains(t,i.getContentAreaContainer())&&!1===c(i,t,o))return!1}})}function _(n){w(n,function(n){return n.remove()}),D(n)}function I(u){return function(){for(var t=this,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];function r(i){void 0!==i&&(D(t),t.each(function(e,r){return O(r,function(n){var t=s(i)?i.call(r,e,n.getContent()):i;void 0!==t&&n.setContent(null===t?"":"".concat(t))},function(n){var t;s(i)?(t=u.call($(n),"value"),t=i.call(n,e,t),u.call($(n),"value",t)):u.call($(n),"value",i)})}))}var i,o=n[0];if(f(o)){if("value"!==o)return u.apply(this,n);var c=n[1];return void 0!==c?(r(c),this):1<=this.length?O(this[0],function(n){return n.getContent()},function(n){return u.call(t,"value")}):void 0}return c=l({},o),o=c,i="value",h.call(o,i)&&(r(c.value),delete c.value),0<v(c).length?u.call(this,c):this}}function N(n,t){var e=document.createElement("div");return n.apply($(e),t),e.innerHTML}function b(c,u){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e,i,r,o="prepend"===u;return i=1===t.length&&s(t[0])?(e=t[0],function(n,t){return N(c,[e.call(n,0,t)])}):(r=t,(t=>{let e=!1,r;return(...n)=>(e||(e=!0,r=t.apply(null,n)),r)})(function(n,t){return N(c,r)})),this.each(function(n,r){return O(r,function(n){var t=n.getContent(),e=i(r,t);n.setContent(o?e+t:t+e)},function(n){c.apply($(n),t)})}),this}}function A(c){return function(o){return void 0!==o?(D(this),this.each(function(r,i){O(i,function(n){var t,e=s(o)?o.call(i,r,n.getContent()):o,e=f(e)?e:(g(e)&&_($(e)),t=document.createElement("div"),c.call($(t),e),t.innerHTML);n.setContent(e)},function(n){var t;s(o)?(t=c.call($(i)),t=o.call(i,r,t),c.call($(i),t)):c.call($(n),o)})}),this):1<=this.length?O(this[0],function(n){return n.getContent()},function(n){return c.call($(n))}):void 0}}function E(c){var n,u=this;return this.length?c?(this.css("visibility","hidden"),new Promise(function(o){H(k(c),function(e,n){n&&c.script_loaded&&c.script_loaded(),S||(S=!0,P(a()));function r(){var n=F(e,u);t&&t(n),o(n)}var i=0,t=M(e,c.oninit);u.each(function(n,t){t.id||(t.id=e.DOM.uniqueId()),e.get(t.id)?i++:e.init(l(l({},c),{selector:void 0,target:t,init_instance_callback:function(n){u.css("visibility",""),i++;var t=c.init_instance_callback;"function"==typeof t&&t.call(n,n),i===u.length&&r()}}))}),i===u.length&&r()})})):null!=(n=j(this[0]))?n:void 0:c?Promise.resolve([]):void 0}var C,T=function(){return!!m()},L=function(){var n=m();if(null!=n)return n;throw new Error("Expected global tinymce")},j=function(n){var t=null;return t=n&&n.id&&T()?L().get(n.id):t},G=((n=C=C||{})[n.NOT_LOADING=0]="NOT_LOADING",n[n.LOADING_STARTED=1]="LOADING_STARTED",n[n.LOADING_FINISHED=2]="LOADING_FINISHED",C.NOT_LOADING),x=[],H=function(n,r){var t;T()||G!==C.NOT_LOADING?G===C.LOADING_STARTED?x.push(r):r(L(),!1):(G=C.LOADING_STARTED,(t=document.createElement("script")).type="text/javascript",t.onload=function(n){if(G!==C.LOADING_FINISHED&&"load"===n.type){G=C.LOADING_FINISHED;var t=L();r(t,!0);for(var e=0;e<x.length;e++)x[e](t,!1)}},t.src=n,document.body.appendChild(t))},P=function(n){var c,o,t,e;n.fn.html=A(n.fn.html),n.fn.text=(c=n.fn.text,function(o){var e;return void 0===o?(e="",this.each(function(n,t){e+=O(t,function(n){return n.getContent({format:"text"})},function(n){return c.call($(n))})}),e):(D(this),this.each(function(r,i){O(i,function(n){var t=s(o)?o.call(i,r,n.getContent({format:"text"})):o,e=document.createElement("div");e.innerText="".concat(t),n.setContent(e.innerHTML)},function(n){var t;s(o)?(t=c.call($(i)),t=o.call(i,r,t),c.call($(i),t)):c.call($(n),o)})}),this)}),n.fn.val=(o=n.fn.val,function(i){return void 0===i?1<=this.length?O(this[0],function(n){return n.getContent()},function(n){return o.call($(n))}):void 0:(this.each(function(e,r){O(r,function(n){var t=s(i)?i.call(r,e,n.getContent()):i,t=u(t)?t.join(""):"".concat(t);n.setContent(t)},function(n){var t;s(i)?(t=o.call($(r)),t=i.call(r,e,null!=t?t:""),o.call($(r),t)):o.call($(n),i)})}),this)}),n.fn.append=b(n.fn.append,"append"),n.fn.prepend=b(n.fn.prepend,"prepend"),n.fn.remove=(t=n.fn.remove,function(n){return _(void 0!==n?this.filter(n):this),t.call(this,n)}),n.fn.empty=(e=n.fn.empty,function(){return D(this),w(this,function(n){n.setContent("")}),e.call(this)}),n.fn.attr=I(n.fn.attr)},k=function(n){var t;return"string"==typeof n.script_url?n.script_url:(t="string"==typeof n.channel?n.channel:"6",n="string"==typeof n.api_key?n.api_key:"no-api-key","https://cdn.tiny.cloud/1/".concat(n,"/tinymce/").concat(t,"/tinymce.min.js"))},F=function(e,n){var r=[];return n.each(function(n,t){r.push(e.get(t.id))}),r},M=function(n,t){if("string"==typeof t){var e,r=n.resolve(t);if("function"==typeof r)return e=-1===t.indexOf(".")?n:n.resolve(t.replace(/\.\w+$/,"")),r.bind(e)}else if("function"==typeof t)return t.bind(n);return null},S=!1;(n=a()).expr.pseudos.tinymce=function(n){return!!j(n)},n.fn.tinymce=E}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinymce/tinymce-jquery",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.20220408065339523.shae1b4aa9",
|
|
4
4
|
"description": "Official TinyMCE integration for jQuery",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"author": "Tiny Technologies",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "^7.17.
|
|
30
|
+
"@babel/core": "^7.17.9",
|
|
31
31
|
"@ephox/agar": "^7.0.1",
|
|
32
32
|
"@ephox/bedrock-client": "^13.0.0",
|
|
33
33
|
"@ephox/bedrock-server": "^13.1.0",
|
|
@@ -36,26 +36,26 @@
|
|
|
36
36
|
"@ephox/sand": "^6.0.1",
|
|
37
37
|
"@ephox/sugar": "^9.0.1",
|
|
38
38
|
"@ephox/swag": "^4.5.0",
|
|
39
|
-
"@storybook/addon-actions": "^6.4.
|
|
40
|
-
"@storybook/addon-essentials": "^6.4.
|
|
41
|
-
"@storybook/addon-links": "^6.4.
|
|
42
|
-
"@storybook/html": "^6.4.
|
|
43
|
-
"@storybook/storybook-deployer": "^2.8.
|
|
39
|
+
"@storybook/addon-actions": "^6.4.20",
|
|
40
|
+
"@storybook/addon-essentials": "^6.4.20",
|
|
41
|
+
"@storybook/addon-links": "^6.4.20",
|
|
42
|
+
"@storybook/html": "^6.4.20",
|
|
43
|
+
"@storybook/storybook-deployer": "^2.8.11",
|
|
44
44
|
"@tinymce/beehive-flow": "^0.17.0",
|
|
45
45
|
"@tinymce/eslint-plugin": "^2.0.1",
|
|
46
46
|
"@types/express": "^4.17.13",
|
|
47
47
|
"@types/jquery": "^3.5.13",
|
|
48
|
-
"babel-loader": "^8.2.
|
|
48
|
+
"babel-loader": "^8.2.4",
|
|
49
49
|
"react": "^17.0.0",
|
|
50
50
|
"react-dom": "^17.0.0",
|
|
51
51
|
"rimraf": "^3.0.2",
|
|
52
|
-
"rollup": "^2.
|
|
52
|
+
"rollup": "^2.70.1",
|
|
53
53
|
"rollup-plugin-uglify": "^6.0.4",
|
|
54
|
-
"tinymce": "^6.0.
|
|
55
|
-
"ts-loader": "^9.2.
|
|
54
|
+
"tinymce": "^6.0.1",
|
|
55
|
+
"ts-loader": "^9.2.8",
|
|
56
56
|
"tslib": "^2.3.1",
|
|
57
|
-
"typescript": "^4.
|
|
58
|
-
"webpack": "^5.
|
|
57
|
+
"typescript": "^4.6.3",
|
|
58
|
+
"webpack": "^5.72.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {}
|
|
61
61
|
}
|