sjdemartini / mui-tiptap

A Material UI (MUI) styled WYSIWYG rich text editor, using Tiptap
MIT License
319 stars 43 forks source link

Allow user to override LinkBubbleMenu and TableMenuControls labels to support localization #104

Closed sjdemartini closed 1 year ago

sjdemartini commented 1 year ago

Toward addressing https://github.com/sjdemartini/mui-tiptap/issues/59

Example

              <LinkBubbleMenu
                labels={{
                  viewLinkEditButtonLabel: "Edit link",
                  viewLinkRemoveButtonLabel: "Remove link",
                  editLinkAddTitle: "Add a new link",
                  editLinkEditTitle: "Update this link",
                  editLinkCancelButtonLabel: "Cancel changes",
                  editLinkTextInputLabel: "Text content",
                  editLinkHrefInputLabel: "URL",
                  editLinkSaveButtonLabel: "Save changes",
                }}
              />
              <TableBubbleMenu
                labels={{
                  insertColumnBefore: "Add a new column before this",
                  insertColumnAfter: "Add a new column after this",
                  deleteColumn: "Remove current column",
                }}
              />

Link menu

Screenshot 2023-07-18 at 4 59 55 PM

Screenshot 2023-07-18 at 4 59 48 PM

Table menu

Screenshot 2023-07-18 at 5 01 14 PM