@madie/madie-design-system 1.2.67 → 1.2.68

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.
@@ -22,6 +22,7 @@ import TableChartIcon from "@mui/icons-material/TableChart";
22
22
  import { Tooltip } from "@mui/material";
23
23
  import { kebabCase } from "lodash";
24
24
  import DOMPurify from "dompurify";
25
+ import { Strike } from "@tiptap/extension-strike";
25
26
 
26
27
  const MenuBar = ({ editor, disabled }) => {
27
28
  if (!editor) {
@@ -228,6 +229,12 @@ const RichTextEditor = ({
228
229
  TableHeader,
229
230
  TableCell,
230
231
  Underline,
232
+ Strike.extend({
233
+ strike: false, // disable default strike through
234
+ renderHTML({ HTMLAttributes }) {
235
+ return ["del", HTMLAttributes, 0];
236
+ },
237
+ }),
231
238
  ],
232
239
  shouldRerenderOnTransaction: false,
233
240
  content,