@richscripts/richtexteditor 2.9.0 → 2.10.0

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.9.0",
6
+ "version": "2.10.0",
7
7
  "description": "A full-featured JavaScript rich text editor (WYSIWYG) with toolbar, plugins, i18n support, a built-in AI Toolkit (Ask AI, AI Chat, AI Review drawer, BYOK resolver), structured content APIs (JSON/Markdown), and an optional collaboration / review stack: slash commands, @mentions, human-author Track Changes, threaded comments, revision history, and Yjs-backed presence. Ships first-class React, Vue, Angular and Svelte bindings, a headless \"bring your own UI\" core, and server-safe conversion helpers.",
8
8
  "main": "./richtexteditor/rte.js",
9
9
  "bin": {
@@ -39440,6 +39440,12 @@ function RTE_Plugin_RubyAnnotation() {
39440
39440
  "@supports (display:ruby){.rte-ruby-annotated>rp{display:none;}}"
39441
39441
  ].join("");
39442
39442
  hostDoc.head.appendChild(style);
39443
+ // A <style> element's rules are dropped under a strict style-src; this
39444
+ // re-injects them through the CSSOM in that case only. Missed in 2.9.0,
39445
+ // found by auditing the FULL bundle rather than a sample of plugins.
39446
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
39447
+ editor.ensureStyleSheetLive(hostDoc, style, "rte-ruby-style", style.textContent);
39448
+ }
39443
39449
  }
39444
39450
 
39445
39451
  function editableRoot() {
@@ -42415,6 +42421,12 @@ function RTE_Plugin_StateInspector() {
42415
42421
  "@media (max-width: 1100px){.rte-state-inspector-shell{display:block;}.rte-state-inspector-panel{margin-top:12px;max-width:none;width:100%;}.rte-state-inspector-body{max-height:340px;}}"
42416
42422
  ].join("");
42417
42423
  hostDoc.head.appendChild(style);
42424
+ // A <style> element's rules are dropped under a strict style-src; this
42425
+ // re-injects them through the CSSOM in that case only. Missed in 2.9.0,
42426
+ // found by auditing the FULL bundle rather than a sample of plugins.
42427
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
42428
+ editor.ensureStyleSheetLive(hostDoc, style, "rte-state-inspector-style", style.textContent);
42429
+ }
42418
42430
  }
42419
42431
 
42420
42432
  function ensureShell() {