@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
@@ -349,5 +349,12 @@ function RTE_Plugin_TableOfContents() {
349
349
  st.setAttribute("data-css", text);
350
350
  st.appendChild(doc.createTextNode(text));
351
351
  (doc.head || doc.getElementsByTagName("head")[0] || doc.documentElement).appendChild(st);
352
+ // A <style> ELEMENT is governed by style-src: under a strict policy the browser
353
+ // drops its rules, leaving this plugin's UI unstyled. The element above stays
354
+ // the path everyone else takes; this re-injects through the CSSOM only when
355
+ // the policy actually emptied it.
356
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
357
+ editor.ensureStyleSheetLive(doc, st, "rte-toc-styles", st.textContent);
358
+ }
352
359
  }
353
360
  }
@@ -309,5 +309,12 @@ function RTE_Plugin_TextDirection() {
309
309
  st.setAttribute("data-css", text);
310
310
  st.appendChild(doc.createTextNode(text));
311
311
  (doc.head || doc.getElementsByTagName("head")[0] || doc.documentElement).appendChild(st);
312
+ // A <style> ELEMENT is governed by style-src: under a strict policy the browser
313
+ // drops its rules, leaving this plugin's UI unstyled. The element above stays
314
+ // the path everyone else takes; this re-injects through the CSSOM only when
315
+ // the policy actually emptied it.
316
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
317
+ editor.ensureStyleSheetLive(doc, st, "rte-textdirection-styles", st.textContent);
318
+ }
312
319
  }
313
320
  }
@@ -500,5 +500,12 @@ function RTE_Plugin_TextPartLanguage() {
500
500
  st.setAttribute("data-css", text);
501
501
  st.appendChild(doc.createTextNode(text));
502
502
  (doc.head || doc.getElementsByTagName("head")[0] || doc.documentElement).appendChild(st);
503
+ // A <style> ELEMENT is governed by style-src: under a strict policy the browser
504
+ // drops its rules, leaving this plugin's UI unstyled. The element above stays
505
+ // the path everyone else takes; this re-injects through the CSSOM only when
506
+ // the policy actually emptied it.
507
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
508
+ editor.ensureStyleSheetLive(doc, st, "rte-textpartlanguage-styles", st.textContent);
509
+ }
503
510
  }
504
511
  }
@@ -83,6 +83,13 @@ function RTE_Plugin_TodoList() {
83
83
  st.id = "rte-todolist-styles";
84
84
  st.appendChild(doc.createTextNode(css));
85
85
  (doc.head || doc.getElementsByTagName("head")[0] || doc.documentElement).appendChild(st);
86
+ // A <style> ELEMENT is governed by style-src: under a strict policy the browser
87
+ // drops its rules, leaving this plugin's UI unstyled. The element above stays
88
+ // the path everyone else takes; this re-injects through the CSSOM only when
89
+ // the policy actually emptied it.
90
+ if (editor && typeof editor.ensureStyleSheetLive === "function") {
91
+ editor.ensureStyleSheetLive(doc, st, "rte-todolist-styles", st.textContent);
92
+ }
86
93
  }
87
94
 
88
95
  function makeCheckbox() {