@richscripts/richtexteditor 2.7.2 → 2.9.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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/richtexteditor/all_plugins.js +2583 -719
  3. package/richtexteditor/all_plugins.min.js +59 -58
  4. package/richtexteditor/plugins/accessibilitychecker.js +7 -0
  5. package/richtexteditor/plugins/all_plugins.js +2583 -719
  6. package/richtexteditor/plugins/all_plugins.min.js +59 -58
  7. package/richtexteditor/plugins/autoembed.js +7 -0
  8. package/richtexteditor/plugins/blocktypes.js +7 -0
  9. package/richtexteditor/plugins/bookmarkcard.js +7 -0
  10. package/richtexteditor/plugins/charlimit.js +7 -0
  11. package/richtexteditor/plugins/comments.js +14 -0
  12. package/richtexteditor/plugins/contentminimap.js +7 -0
  13. package/richtexteditor/plugins/crossreference.js +7 -0
  14. package/richtexteditor/plugins/dictation.js +7 -0
  15. package/richtexteditor/plugins/documentoutline.js +9 -3
  16. package/richtexteditor/plugins/draghandle.js +7 -0
  17. package/richtexteditor/plugins/foldheadings.js +7 -0
  18. package/richtexteditor/plugins/footnotes.js +7 -0
  19. package/richtexteditor/plugins/formatpainter.js +7 -0
  20. package/richtexteditor/plugins/formattingmarks.js +7 -0
  21. package/richtexteditor/plugins/gapcursor.js +7 -0
  22. package/richtexteditor/plugins/ghostcomplete.js +7 -0
  23. package/richtexteditor/plugins/layouttable.js +7 -0
  24. package/richtexteditor/plugins/linenumbers.js +7 -0
  25. package/richtexteditor/plugins/linkchecker.js +7 -0
  26. package/richtexteditor/plugins/mentionplugin.js +14 -0
  27. package/richtexteditor/plugins/mergefields.js +7 -0
  28. package/richtexteditor/plugins/mermaiddiagram.js +7 -0
  29. package/richtexteditor/plugins/multilevellist.js +7 -0
  30. package/richtexteditor/plugins/nodetypes.js +439 -0
  31. package/richtexteditor/plugins/pagination.js +7 -0
  32. package/richtexteditor/plugins/restrictedediting.js +7 -0
  33. package/richtexteditor/plugins/revisionhistory.js +7 -0
  34. package/richtexteditor/plugins/rtlui.js +7 -0
  35. package/richtexteditor/plugins/rubyannotation.js +255 -0
  36. package/richtexteditor/plugins/slashcommand.js +7 -0
  37. package/richtexteditor/plugins/smartchips.js +7 -0
  38. package/richtexteditor/plugins/spellcheck.js +7 -0
  39. package/richtexteditor/plugins/stateinspector.js +866 -0
  40. package/richtexteditor/plugins/tableofcontents.js +7 -0
  41. package/richtexteditor/plugins/textdirection.js +7 -0
  42. package/richtexteditor/plugins/textpartlanguage.js +7 -0
  43. package/richtexteditor/plugins/todolist.js +7 -0
  44. package/richtexteditor/plugins/trackedchanges.js +730 -716
  45. package/richtexteditor/plugins/typewriter.js +7 -0
  46. package/richtexteditor/plugins/watermark.js +15 -0
  47. package/richtexteditor/plugins/yjscollab.js +7 -0
  48. package/richtexteditor/rte.js +2 -2
@@ -117,6 +117,13 @@ function RTE_Plugin_AccessibilityChecker() {
117
117
  "@media (max-width: 1420px){.rte-a11y-shell{display:block;}.rte-a11y-panel{margin-top:12px;max-width:none;width:100%;}.rte-a11y-body{max-height:360px;}}"
118
118
  ].join("");
119
119
  hostDoc.head.appendChild(style);
120
+ // A <style> ELEMENT is governed by style-src: under a strict policy the browser
121
+ // drops its rules, leaving this plugin's UI unstyled. The element above stays
122
+ // the path everyone else takes; this re-injects through the CSSOM only when
123
+ // the policy actually emptied it.
124
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
125
+ editor.ensureStyleSheetLive(hostDoc, style, "rte-accessibility-checker-style", style.textContent);
126
+ }
120
127
  }
121
128
 
122
129
  function ensureShell() {