UNPKG

rhino-editor

Version:

A custom element wrapped rich text editor

41 lines (39 loc) 1.29 kB
// src/exports/translations.ts var isiOS = /Mac|iOS|iPhone|iPad|iPod/i.test( window.navigator.platform ); var modifierKey = isiOS ? "cmd" : "ctrl"; var altKey = isiOS ? "option" : "alt"; var fileUploadErrorMessage = "Unable to upload this file."; var captionPlaceholder = "Add a caption..."; var translations = { attachFiles: "Attach Files", bold: `Bold <${modifierKey}+b>`, italics: `Italicize <${modifierKey}+i>`, strike: `Strikethrough <${modifierKey}+shift+x>`, link: `Link <${modifierKey}+k>`, heading: `Heading <${modifierKey}+${altKey}+1>`, blockQuote: `Blockquote <${modifierKey}+shift+b>`, code: `Inline code <${modifierKey}+e>`, codeBlock: `Codeblock <${modifierKey}+${altKey}+c>`, bulletList: `Bullet List <${modifierKey}+shift+7>`, orderedList: `Ordered List <${modifierKey}+shift+8>`, undo: `Undo <${modifierKey}+z>`, redo: `Redo <${modifierKey}+shift+z>`, linkDialogLink: "Link", linkDialogUnlink: "Unlink", placeholder: "Write something...", increaseIndentation: "Increase indentation", decreaseIndentation: "Decrease indentation", fileUploadErrorMessage, captionPlaceholder }; export { isiOS, modifierKey, altKey, fileUploadErrorMessage, captionPlaceholder, translations }; //# sourceMappingURL=chunk-MPMUJGV5.js.map