@tinymce/tinymce-webcomponent 2.3.1 → 2.3.2-alpha.20251218032821784.sha858c734

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 CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ### Fixed
10
+ - Editor initialization failure error handling. #INT-3366
11
+ - Disconnected Editor not destroyed.
12
+
9
13
  ## 2.3.1 - 2025-08-11
10
14
 
11
15
  ### Fixed
@@ -149,10 +149,10 @@
149
149
  const lookup = values => key => isLookupKey(values, key) ? values[key] : key;
150
150
  const parseGlobal = resolve;
151
151
  const parseString = identity;
152
- const parseFalseOrString = lookup({ 'false': false });
152
+ const parseFalseOrString = lookup({ false: false });
153
153
  const parseBooleanOrString = lookup({
154
- 'true': true,
155
- 'false': false
154
+ true: true,
155
+ false: false
156
156
  });
157
157
  const parseNumberOrString = value => /^\d+$/.test(value) ? Number.parseInt(value, 10) : value;
158
158
  const configAttributes = {
@@ -413,7 +413,9 @@
413
413
  }
414
414
  }
415
415
  });
416
- this._getTinymce().init(conf);
416
+ this._getTinymce().init(conf).catch(err => {
417
+ console.error('TinyMCE init failed', err);
418
+ });
417
419
  }
418
420
  _getTinymceSrc() {
419
421
  var _a;
@@ -464,6 +466,9 @@
464
466
  disconnectedCallback() {
465
467
  this._mutationObserver.disconnect();
466
468
  this._updateForm();
469
+ if (this._editor) {
470
+ this._getTinymce().remove(this._editor);
471
+ }
467
472
  }
468
473
  get value() {
469
474
  var _a, _b;
package/package.json CHANGED
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "description": "Official TinyMCE Web Component",
3
+ "version": "2.3.2-alpha.20251218032821784.sha858c734",
4
+ "name": "@tinymce/tinymce-webcomponent",
3
5
  "repository": {
4
6
  "url": "https://github.com/tinymce/tinymce-webcomponent"
5
7
  },
@@ -24,33 +26,32 @@
24
26
  "license": "MIT",
25
27
  "devDependencies": {
26
28
  "@ephox/agar": "^8.0.1",
27
- "@ephox/bedrock-client": "^14.1.1",
28
- "@ephox/bedrock-server": "^14.1.4",
29
+ "@ephox/bedrock-client": "^15.0.0",
30
+ "@ephox/bedrock-server": "^15.0.0",
29
31
  "@ephox/katamari": "^9.1.5",
30
32
  "@ephox/sugar": "^9.2.1",
31
33
  "@ephox/swag": "^4.6.0",
32
34
  "@tinymce/beehive-flow": "^0.19.0",
33
- "@tinymce/eslint-plugin": "^2.2.1",
35
+ "@tinymce/eslint-plugin": "^3.0.0",
34
36
  "@types/esm": "^3.2.0",
35
37
  "@types/express": "^5.0.0",
36
- "@types/node": "^22.7.7",
37
- "@typescript-eslint/eslint-plugin": "^5.48.2",
38
- "@typescript-eslint/parser": "^5.48.2",
39
- "eslint": "^8.32.0",
38
+ "@types/node": "^24.5.2",
39
+ "@typescript-eslint/eslint-plugin": "^8.44.0",
40
+ "@typescript-eslint/parser": "^8.44.0",
41
+ "eslint": "^9.36.0",
42
+ "eslint-config-eslint": "^13.0.0",
40
43
  "eslint-plugin-import": "^2.27.5",
41
44
  "eslint-plugin-prefer-arrow": "^1.2.3",
42
45
  "esm": "^3.2.25",
43
- "express": "^4.18.2",
46
+ "express": "^5.1.0",
44
47
  "rollup": "^4.24.0",
45
48
  "tinymce": "^8.0.0",
46
49
  "ts-loader": "^9.4.2",
47
50
  "ts-node": "^10.9.1",
48
- "typescript": "~5.6.3",
51
+ "typescript": "~5.9.2",
49
52
  "webpack": "^5.75.0"
50
53
  },
51
54
  "dependencies": {
52
55
  "@tinymce/miniature": "^6.0.0"
53
- },
54
- "version": "2.3.1",
55
- "name": "@tinymce/tinymce-webcomponent"
56
+ }
56
57
  }