UNPKG

@yuniit/element-tiptap

Version:

🌸A modern WYSIWYG rich-text editor using tiptap and Element Plus for Vue3

219 lines (218 loc) • 4.98 kB
export default { editor: { extensions: { Bold: { tooltip: 'Bold', }, Underline: { tooltip: 'Underline', }, Italic: { tooltip: 'Italic', }, Strike: { tooltip: 'Strike through', }, Heading: { tooltip: 'Heading', buttons: { paragraph: 'Paragraph', heading: 'Heading', } }, Blockquote: { tooltip: 'Block quote', }, CodeBlock: { tooltip: 'Code block', }, Link: { add: { tooltip: 'Apply link', control: { title: 'Apply Link', href: 'Href', open_in_new_tab: 'Open in new tab', confirm: 'Apply', cancel: 'Cancel', }, }, edit: { tooltip: 'Edit link', control: { title: 'Edit Link', href: 'Href', open_in_new_tab: 'Open in new tab', confirm: 'Update', cancel: 'Cancel', }, }, unlink: { tooltip: 'Unlink', }, open: { tooltip: 'Open link', }, }, Box: { tooltip: 'Box', position: 'Position', }, Image: { buttons: { insert_image: { tooltip: 'Insert image', external: 'Insert Image By Url', upload: 'Upload Image', }, remove_image: { tooltip: 'Remove', }, image_options: { tooltip: 'Image options', }, display: { tooltip: 'Display', inline: 'Inline', block: 'Break Text', left: 'Float Left', right: 'Float Right', }, }, control: { insert_by_url: { title: 'Insert image', placeholder: 'Url of image', confirm: 'Insert', cancel: 'Cancel', invalid_url: 'Please enter the correct url', }, upload_image: { title: 'Upload image', button: 'Choose an image file or drag it here', }, edit_image: { title: 'Edit image', confirm: 'Update', cancel: 'Cancel', form: { src: 'Image Url', alt: 'Alternative Text', width: 'Width', height: 'Height', }, }, }, }, Iframe: { tooltip: 'Insert video', control: { title: 'Insert video', placeholder: 'Href', confirm: 'Insert', cancel: 'Cancel', }, }, BulletList: { tooltip: 'Bullet list', }, OrderedList: { tooltip: 'Ordered list', }, TodoList: { tooltip: 'Todo list', }, TextAlign: { buttons: { align_left: { tooltip: 'Align left', }, align_center: { tooltip: 'Align center', }, align_right: { tooltip: 'Align right', }, align_justify: { tooltip: 'Align justify', }, }, }, FontType: { tooltip: 'Font family', }, FontSize: { tooltip: 'Font size', default: 'default', }, TextColor: { tooltip: 'Text color', }, TextHighlight: { tooltip: 'Text highlight', }, LineHeight: { tooltip: 'Line height', }, Table: { tooltip: 'Table', buttons: { insert_table: 'Insert Table', add_column_before: 'Add Column Before', add_column_after: 'Add Column After', delete_column: 'Delete Column', add_row_before: 'Add Row Before', add_row_after: 'Add Row After', delete_row: 'Delete Row', merge_cells: 'Merge Cells', split_cell: 'Split Cell', delete_table: 'Delete Table', }, }, Indent: { buttons: { indent: { tooltip: 'Indent', }, outdent: { tooltip: 'Outdent', }, }, }, FormatClear: { tooltip: 'Clear format', }, HorizontalRule: { tooltip: 'Horizontal rule', }, History: { tooltip: { undo: 'Undo', redo: 'Redo', }, }, Fullscreen: { tooltip: { fullscreen: 'Full screen', exit_fullscreen: 'Exit full screen', }, }, Print: { tooltip: 'Print', }, Preview: { tooltip: 'Preview', dialog: { title: 'Preview', }, }, SelectAll: { tooltip: 'Select all', }, CodeView: { tooltip: 'Code view', }, }, characters: 'Characters', }, };