@mantine/tiptap
Version:
Rich text editor based on tiptap
58 lines (55 loc) • 1.97 kB
JavaScript
'use client';
;
const DEFAULT_LABELS = {
// Controls labels
linkControlLabel: "Link",
colorPickerControlLabel: "Text color",
highlightControlLabel: "Highlight text",
colorControlLabel: (color) => `Set text color ${color}`,
boldControlLabel: "Bold",
italicControlLabel: "Italic",
underlineControlLabel: "Underline",
strikeControlLabel: "Strikethrough",
clearFormattingControlLabel: "Clear formatting",
unlinkControlLabel: "Remove link",
bulletListControlLabel: "Bullet list",
orderedListControlLabel: "Ordered list",
h1ControlLabel: "Heading 1",
h2ControlLabel: "Heading 2",
h3ControlLabel: "Heading 3",
h4ControlLabel: "Heading 4",
h5ControlLabel: "Heading 5",
h6ControlLabel: "Heading 6",
blockquoteControlLabel: "Blockquote",
alignLeftControlLabel: "Align text: left",
alignCenterControlLabel: "Align text: center",
alignRightControlLabel: "Align text: right",
alignJustifyControlLabel: "Align text: justify",
codeControlLabel: "Code",
codeBlockControlLabel: "Code block",
subscriptControlLabel: "Subscript",
superscriptControlLabel: "Superscript",
unsetColorControlLabel: "Unset color",
hrControlLabel: "Horizontal line",
undoControlLabel: "Undo",
redoControlLabel: "Redo",
// Task list
tasksControlLabel: "Task list",
tasksSinkLabel: "Decrease task level",
tasksLiftLabel: "Increase task level",
// Link editor
linkEditorInputLabel: "Enter URL",
linkEditorInputPlaceholder: "https://example.com/",
linkEditorExternalLink: "Open link in a new tab",
linkEditorInternalLink: "Open link in the same tab",
linkEditorSave: "Save",
// Color picker control
colorPickerCancel: "Cancel",
colorPickerClear: "Clear color",
colorPickerColorPicker: "Color picker",
colorPickerPalette: "Color palette",
colorPickerSave: "Save",
colorPickerColorLabel: (color) => `Set text color ${color}`
};
exports.DEFAULT_LABELS = DEFAULT_LABELS;
//# sourceMappingURL=labels.cjs.map