@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.
- package/package.json +1 -1
- package/richtexteditor/all_plugins.js +2583 -719
- package/richtexteditor/all_plugins.min.js +59 -58
- package/richtexteditor/plugins/accessibilitychecker.js +7 -0
- package/richtexteditor/plugins/all_plugins.js +2583 -719
- package/richtexteditor/plugins/all_plugins.min.js +59 -58
- package/richtexteditor/plugins/autoembed.js +7 -0
- package/richtexteditor/plugins/blocktypes.js +7 -0
- package/richtexteditor/plugins/bookmarkcard.js +7 -0
- package/richtexteditor/plugins/charlimit.js +7 -0
- package/richtexteditor/plugins/comments.js +14 -0
- package/richtexteditor/plugins/contentminimap.js +7 -0
- package/richtexteditor/plugins/crossreference.js +7 -0
- package/richtexteditor/plugins/dictation.js +7 -0
- package/richtexteditor/plugins/documentoutline.js +9 -3
- package/richtexteditor/plugins/draghandle.js +7 -0
- package/richtexteditor/plugins/foldheadings.js +7 -0
- package/richtexteditor/plugins/footnotes.js +7 -0
- package/richtexteditor/plugins/formatpainter.js +7 -0
- package/richtexteditor/plugins/formattingmarks.js +7 -0
- package/richtexteditor/plugins/gapcursor.js +7 -0
- package/richtexteditor/plugins/ghostcomplete.js +7 -0
- package/richtexteditor/plugins/layouttable.js +7 -0
- package/richtexteditor/plugins/linenumbers.js +7 -0
- package/richtexteditor/plugins/linkchecker.js +7 -0
- package/richtexteditor/plugins/mentionplugin.js +14 -0
- package/richtexteditor/plugins/mergefields.js +7 -0
- package/richtexteditor/plugins/mermaiddiagram.js +7 -0
- package/richtexteditor/plugins/multilevellist.js +7 -0
- package/richtexteditor/plugins/nodetypes.js +439 -0
- package/richtexteditor/plugins/pagination.js +7 -0
- package/richtexteditor/plugins/restrictedediting.js +7 -0
- package/richtexteditor/plugins/revisionhistory.js +7 -0
- package/richtexteditor/plugins/rtlui.js +7 -0
- package/richtexteditor/plugins/rubyannotation.js +255 -0
- package/richtexteditor/plugins/slashcommand.js +7 -0
- package/richtexteditor/plugins/smartchips.js +7 -0
- package/richtexteditor/plugins/spellcheck.js +7 -0
- package/richtexteditor/plugins/stateinspector.js +866 -0
- package/richtexteditor/plugins/tableofcontents.js +7 -0
- package/richtexteditor/plugins/textdirection.js +7 -0
- package/richtexteditor/plugins/textpartlanguage.js +7 -0
- package/richtexteditor/plugins/todolist.js +7 -0
- package/richtexteditor/plugins/trackedchanges.js +730 -716
- package/richtexteditor/plugins/typewriter.js +7 -0
- package/richtexteditor/plugins/watermark.js +15 -0
- package/richtexteditor/plugins/yjscollab.js +7 -0
- 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() {
|