Skip to content

Commit aa888e9

Browse files
INT-3365: Update dependencies (#29)
* INT-3365: Update dependencies * Update tinymce eslint * Update tests * Also prepare to release 2.2.0 which was missed * Update tinymce
1 parent d8c1a43 commit aa888e9

17 files changed

Lines changed: 2229 additions & 1975 deletions

.eslintrc.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9-
## 2.2.0 - 2025-07-31
9+
## 2.2.0 - 2025-10-16
10+
11+
### Fixed
12+
- Editor initialization failure handling. #INT-3365
1013

1114
### Changed
12-
- Set the default cloudChannel to 8
15+
- Set the default cloudChannel to 8. #INT-3357
1316

1417
## 2.1.0 - 2023-03-27
1518

eslint.config.mjs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// eslint.config.js
2+
import { defineConfig } from 'eslint/config';
3+
import tinymceEslintPlugin from '@tinymce/eslint-plugin';
4+
import js from '@eslint/js';
5+
6+
export default defineConfig([
7+
{
8+
files: [
9+
"**/*.ts"
10+
],
11+
plugins: {
12+
"@tinymce": tinymceEslintPlugin
13+
},
14+
extends: [ '@tinymce/standard' ],
15+
languageOptions: {
16+
parserOptions: {
17+
sourceType: "module",
18+
project: [
19+
"./tsconfig.json"
20+
]
21+
},
22+
},
23+
rules: {}
24+
},
25+
{
26+
files: [
27+
"rollup.config.js",
28+
"src/**/*.js"
29+
],
30+
plugins: { js },
31+
env: {
32+
es6: true,
33+
node: true,
34+
browser: true
35+
},
36+
extends: [ "js/recommended" ],
37+
parser: "espree",
38+
languageOptions: {
39+
parserOptions: {
40+
ecmaVersion: 2020,
41+
sourceType: "module"
42+
}
43+
},
44+
rules: {
45+
"indent": [ "error", 2, { "SwitchCase": 1 } ],
46+
"no-shadow": "error",
47+
"no-unused-vars": [ "error", { "argsIgnorePattern": "^_" } ],
48+
"object-curly-spacing": [ "error", "always", { "arraysInObjects": false, "objectsInObjects": false } ],
49+
"quotes": [ "error", "single" ],
50+
"semi": "error"
51+
}
52+
}
53+
]);

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tinymce/tinymce-jquery",
3-
"version": "2.2.0-rc",
3+
"version": "2.2.0",
44
"description": "Official TinyMCE integration for jQuery",
55
"main": "dist/tinymce-jquery.js",
66
"files": [
@@ -29,8 +29,8 @@
2929
"devDependencies": {
3030
"@babel/core": "^7.21.3",
3131
"@ephox/agar": "^7.4.1",
32-
"@ephox/bedrock-client": "^15.0.0",
33-
"@ephox/bedrock-server": "^15.0.2",
32+
"@ephox/bedrock-client": "^14.0.0",
33+
"@ephox/bedrock-server": "^14.0.0",
3434
"@ephox/katamari": "^9.1.5",
3535
"@ephox/mcagar": "^8.3.2",
3636
"@ephox/sand": "^6.0.9",
@@ -47,7 +47,7 @@
4747
"@storybook/storybook-deployer": "^2.8.16",
4848
"@storybook/testing-library": "^0.0.13",
4949
"@tinymce/beehive-flow": "^0.19.0",
50-
"@tinymce/eslint-plugin": "^2.2.1",
50+
"@tinymce/eslint-plugin": "^3.0.0",
5151
"@types/jquery": "^3.5.16",
5252
"@types/react": "^17.0.0",
5353
"babel-loader": "^8.3.0",
@@ -57,7 +57,7 @@
5757
"rollup": "^3.20.2",
5858
"tinymce": "^8.0.1",
5959
"tslib": "^2.5.0",
60-
"typescript": "~4.8.3",
60+
"typescript": "^5.9.3",
6161
"webpack": "^5.9.0"
6262
},
6363
"dependencies": {},

src/main/ts/Integration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ const tinymceFn = function (this: JQuery<HTMLElement>, settings?: RawEditorExten
128128
selector: undefined,
129129
target: elm,
130130
init_instance_callback: initInstanceCallback
131+
}).catch((err) => {
132+
/* eslint-disable-next-line no-console */
133+
console.error('TinyMCE init failed', err);
131134
});
132-
133135
}); // this.each
134136

135137
if (initCount === this.length) {

src/stories/Editor.stories.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const Template: Story<RawEditorExtendedSettings> = (args) => {
2020

2121
const addTinyMCE = () => {
2222
$(mountNode).after(`<div id="tiny${mount}"><p>The quick brown fox jumps over the lazy dog.</p></div>`);
23-
$(`div#tiny${mount}`).tinymce(args);
23+
$(`div#tiny${mount}`).tinymce(args).catch((err) => {
24+
/* eslint-disable-next-line no-console */
25+
console.error('TinyMCE init failed', err);
26+
});
2427
};
2528

2629
const removeTinyMCE = () => {

src/test/ts/browser/JqAppendTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-empty-function */
2-
/* eslint-disable @tinymce/prefer-fun */
1+
32
import { Assertions } from '@ephox/agar';
43
import { context, describe, it } from '@ephox/bedrock-client';
54
import { setupIntegration } from '../../../main/ts/Integration';

src/test/ts/browser/JqAttrTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-empty-function */
2-
/* eslint-disable @tinymce/prefer-fun */
1+
32
import { Assertions } from '@ephox/agar';
43
import { context, describe, it } from '@ephox/bedrock-client';
54
import { setupIntegration } from '../../../main/ts/Integration';

src/test/ts/browser/JqEmptyTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-empty-function */
2-
/* eslint-disable @tinymce/prefer-fun */
1+
32
import { ApproxStructure, Assertions } from '@ephox/agar';
43
import { context, describe, it } from '@ephox/bedrock-client';
54
import { SugarElement } from '@ephox/sugar';

src/test/ts/browser/JqHtmlTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-empty-function */
2-
/* eslint-disable @tinymce/prefer-fun */
1+
32
import { Assertions } from '@ephox/agar';
43
import { context, describe, it } from '@ephox/bedrock-client';
54
import { setupIntegration } from '../../../main/ts/Integration';

0 commit comments

Comments
 (0)