UNPKG

@progress/kendo-react-editor

Version:

React Editor enables users to create rich text content through a WYSIWYG interface. KendoReact Editor package

365 lines (364 loc) 14.7 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ const e = "editor.bold", t = "editor.italic", o = "editor.underline", r = "editor.strikethrough", i = "editor.subscript", l = "editor.superscript", s = "editor.hyperlink", n = "editor.insertFile", d = "editor.print", c = "editor.selectAll", a = "editor.cleanFormatting", p = "editor.pdf", b = "editor.foregroundColor", P = "editor.backgroundColor", g = "editor.createTable", C = "editor.insertTableHint", m = "editor.addRowBefore", h = "editor.addRowAfter", f = "editor.addColumnBefore", R = "editor.addColumnAfter", y = "editor.deleteRow", u = "editor.deleteColumn", S = "editor.deleteTable", A = "editor.mergeCells", T = "editor.splitCell", w = "editor.hyperlink-dialog-title", B = "editor.hyperlink-dialog-content-address", I = "editor.hyperlink-dialog-content-title", H = "editor.hyperlink-dialog-content-newwindow", L = "editor.hyperlink-dialog-cancel", k = "editor.hyperlink-dialog-insert", v = "editor.insertfile-dialog-title", W = "editor.insertfile-dialog-content-address", D = "editor.insertfile-dialog-content-title", F = "editor.insertfile-dialog-cancel", x = "editor.insertfile-dialog-insert", M = "editor.image", N = "editor.image-dialog-title", U = "editor.image-address", E = "editor.image-title", G = "editor.image-altText", z = "editor.image-width", O = "editor.image-height", q = "editor.image-cancel", J = "editor.image-insert", V = "editor.viewHtml", j = "editor.viewHtml-dialog-title", K = "editor.viewHtml-cancel", Q = "editor.viewHtml-update", X = "editor.unlink", Y = "editor.undo", Z = "editor.redo", _ = "editor.fontSize", $ = "editor.fontName", ee = "editor.format", te = "editor.alignLeft", oe = "editor.alignRight", re = "editor.alignCenter", ie = "editor.alignJustify", le = "editor.indent", se = "editor.outdent", ne = "editor.orderedList", de = "editor.bulletList", ce = "editor.findReplace-tool-title", ae = "editor.findReplace-dialog-title", pe = "editor.findReplace-tab-find", be = "editor.findReplace-tab-replace", Pe = "editor.findReplace-findWhat", ge = "editor.findReplace-replaceWith", Ce = "editor.findReplace-replace", me = "editor.findReplace-replaceAll", he = "editor.findReplace-matchCase", fe = "editor.findReplace-matchWord", Re = "editor.findReplace-matchCyclic", ye = "editor.findReplace-useRegExp", ue = "editor.findReplace-prevMatch", Se = "editor.findReplace-nextMatch", Ae = "editor.findReplace-matches", Te = "editor.findReplace-invalidRegExp", we = "editor.iframeTitle", Be = "editorTools.foreColorLabel", Ie = "editorTools.backColorLabel", He = "editor.cellProperties", Le = "editor.cellPropertiesLeftTop", ke = "editor.cellPropertiesCenterTop", ve = "editor.cellPropertiesRightTop", We = "editor.cellPropertiesLeftMiddle", De = "editor.cellPropertiesCenterMiddle", Fe = "editor.cellPropertiesRightMiddle", xe = "editor.cellPropertiesLeftBottom", Me = "editor.cellPropertiesCenterBottom", Ne = "editor.cellPropertiesRightBottom", Ue = "editor.cellPropertiesNoAlignment", Ee = "editor.cellPropertiesWrap", Ge = "editor.cellPropertiesFitToCell", ze = "editor.cellPropertiesApplyToAllCells", Oe = "editor.cellPropertiesWidth", qe = "editor.cellPropertiesApplyToColumn", Je = "editor.cellPropertiesHeight", Ve = "editor.cellPropertiesApplyToRow", je = "editor.cellPropertiesAlignment", Ke = "editor.cellPropertiesTextControl", Qe = "editor.cellPropertiesCellPadding", Xe = "editor.cellPropertiesBackground", Ye = "editor.cellPropertiesBorderWidth", Ze = "editor.cellPropertiesBorderColor", _e = "editor.cellPropertiesBorderStyle", $e = "editor.cellPropertiesId", et = "editor.cellPropertiesCssClass", tt = "editor.cellPropertiesSave", ot = "editor.cellPropertiesCancel", rt = "editor.tableProperties", it = "editor.tablePropertiesAlignLeft", lt = "editor.tablePropertiesAlignCenter", st = "editor.tablePropertiesAlignRight", nt = "editor.tablePropertiesNoAlignment", dt = "editor.tablePropertiesLeft", ct = "editor.tablePropertiesCenter", at = "editor.tablePropertiesRight", pt = "editor.tablePropertiesTop", bt = "editor.tablePropertiesBottom", Pt = "editor.tablePropertiesNone", gt = "editor.tablePropertiesUsingScopeAttribute", Ct = "editor.tablePropertiesUsingIdAttributes", mt = "editor.tablePropertiesRows", ht = "editor.tablePropertiesColumns", ft = "editor.tablePropertiesWidth", Rt = "editor.tablePropertiesHeight", yt = "editor.tablePropertiesPosition", ut = "editor.tablePropertiesAlignment", St = "editor.tablePropertiesCellSpacing", At = "editor.tablePropertiesCellPadding", Tt = "editor.tablePropertiesTableBackground", wt = "editor.tablePropertiesBorderWidth", Bt = "editor.tablePropertiesBorderColor", It = "editor.tablePropertiesBorderStyle", Ht = "editor.tablePropertiesCollapseBorders", Lt = "editor.tablePropertiesID", kt = "editor.tablePropertiesCssClass", vt = "editor.tablePropertiesAccessibility", Wt = "editor.tablePropertiesCaption", Dt = "editor.tablePropertiesCaptionPosition", Ft = "editor.tablePropertiesCaptionAlignment", xt = "editor.tablePropertiesHeaderRows", Mt = "editor.tablePropertiesHeaderCols", Nt = "editor.tablePropertiesAssociateHeaders", Ut = "editor.tablePropertiesGeneral", Et = "editor.tablePropertiesAdvanced", Gt = "editor.tablePropertiesSave", zt = "editor.tablePropertiesCancel", Ot = "editor.borderStyleNone", qt = "editor.borderStyleSolid", Jt = "editor.borderStyleDotted", Vt = "editor.borderStyleDashed", jt = "editor.borderStyleDouble", Kt = "editor.borderStyleGroove", Qt = "editor.borderStyleRidge", Xt = "editor.borderStyleInset", Yt = "editor.borderStyleOutset", Zt = "editor.borderStyleInitial", _t = "editor.borderStyleInherit", $t = "editor.borderStyleHidden", eo = "editor.sizeAuto", to = "editor.listStyleDisc", oo = "editor.listStyleCircle", ro = "editor.listStyleSquare", io = "editor.listStyleDecimal", lo = "editor.listStyleUpperRoman", so = "editor.listStyleLowerRoman", no = "editor.listStyleUpperLatin", co = "editor.listStyleLowerLatin", ao = { [e]: "Bold", [t]: "Italic", [o]: "Underline", [r]: "Strikethrough", [i]: "Subscript", [l]: "Superscript", [X]: "Remove hyperlink", [Y]: "Undo", [Z]: "Redo", [_]: "Font Size", [$]: "Font Name", [ee]: "Format", [te]: "Align text left", [oe]: "Align text right", [re]: "Center text", [ie]: "Justify", [le]: "Indent", [se]: "Outdent", [ne]: "Insert ordered list", [de]: "Insert unordered list", [d]: "Print", [c]: "Select All", [a]: "Clean formatting", [p]: "Export as PDF", [b]: "Color", [P]: "Background color", // Tables [g]: "Create a table", [C]: "Create a {0} x {1} table", [m]: "Add row above", [h]: "Add row below", [f]: "Add column on the left", [R]: "Add column on the right", [y]: "Delete row", [u]: "Delete column", [S]: "Delete table", [A]: "Merge cells", [T]: "Split cell", // Insert Link [s]: "Insert hyperlink", [w]: "Insert hyperlink", [B]: "Web address", [I]: "Title", [H]: "Open link in new window", [L]: "Cancel", [k]: "Insert", // Insert File [n]: "Insert file", [v]: "Insert file", [W]: "Web address", [D]: "Title", [F]: "Cancel", [x]: "Insert", // Insert Image [M]: "Insert image", [N]: "Insert image", [U]: "Web address", [E]: "Title", [G]: "Alternate text", [z]: "Width (px)", [O]: "Height (px)", [q]: "Cancel", [J]: "Insert", // View HTML [V]: "View HTML", [j]: "View HTML", [K]: "Cancel", [Q]: "Update", // Find and Replace [ce]: "Find and Replace", [ae]: "Find and Replace", [pe]: "Find", [be]: "Replace", [Pe]: "Find What:", [ge]: "Replace With", [Ce]: "Replace", [me]: "Replace All", [he]: "Match Case", [fe]: "Match whole word only", [Re]: "Match cyclic (Wrap around)", [ye]: "Regular Expression", [ue]: "Prev", [Se]: "Next", [Ae]: "{0} of {1} matches", [Te]: "Invalid regular expression.", [we]: "Editable area. Press Alt + F10 for toolbar.", [Be]: "Fore Color", [Ie]: "Back Color", [He]: "Cell properties", [Le]: "Left Top", [ke]: "Center Top", [ve]: "Right Top", [We]: "Left Middle", [De]: "Center Middle", [Fe]: "Right Middle", [xe]: "Left Bottom", [Me]: "Center Bottom", [Ne]: "Right Bottom", [Ue]: "No Alignment", [Ee]: "Wrap", [Ge]: "Fit to cell", [ze]: "Apply to all cells", [Oe]: "Width", [qe]: "apply to column", [Je]: "Height", [Ve]: "apply to row", [je]: "Alignment", [Ke]: "Text control", [Qe]: "Cell padding", [Xe]: "Background", [Ye]: "Border width", [Ze]: "Border color", [_e]: "Border style", [$e]: "ID", [et]: "CSS class", [tt]: "Save", [ot]: "Cancel", [rt]: "Table properties", [it]: "Align Left", [lt]: "Align Center", [st]: "Align Right", [nt]: "No Alignment", [dt]: "Left", [ct]: "Center", [at]: "Right", [pt]: "Top", [bt]: "Bottom", [Pt]: "None", // eslint-disable-next-line @typescript-eslint/quotes [gt]: "Using 'scope' attribute", // eslint-disable-next-line @typescript-eslint/quotes [Ct]: "Using 'id' attributes", [mt]: "Rows", [ht]: "Columns", [ft]: "Width", [Rt]: "Height", [yt]: "Position", [ut]: "Alignment", [St]: "Cell spacing", [At]: "Cell padding", [Tt]: "Table background", [wt]: "Border width", [Bt]: "Border color", [It]: "Border style", [Ht]: "Collapse borders", [Lt]: "ID", [kt]: "CSS class", [vt]: "Accessibility", [Wt]: "Caption", [Dt]: "Position", [Ft]: "Alignment", [xt]: "Header rows", [Mt]: "Header cols", [Nt]: "Associate headers", [Ut]: "General", [Et]: "Advanced", [Gt]: "Save", [zt]: "Cancel", [Ot]: "None", [qt]: "Solid", [Jt]: "Dotted", [Vt]: "Dashed", [jt]: "Double", [Kt]: "Groove", [Qt]: "Ridge", [Xt]: "Inset", [Yt]: "Outset", [Zt]: "Initial", [_t]: "Inherit", [$t]: "Hidden", [eo]: "Auto", [to]: "Disc", [oo]: "Circle", [ro]: "Square", [io]: "Decimal", [lo]: "Upper roman", [so]: "Lower roman", [no]: "Upper latin", [co]: "Lower latin" }, po = { bold: e, italic: t, underline: o, strikethrough: r, subscript: i, superscript: l, unlink: X, undo: Y, redo: Z, fontSize: _, fontName: $, format: ee, alignLeft: te, alignRight: oe, alignCenter: re, alignJustify: ie, indent: le, outdent: se, orderedList: ne, bulletList: de, print: d, selectAll: c, cleanFormatting: a, pdf: p, foregroundColor: b, backgroundColor: P, createTable: g, createTableHint: C, addRowBefore: m, addRowAfter: h, addColumnBefore: f, addColumnAfter: R, deleteRow: y, deleteColumn: u, deleteTable: S, mergeCells: A, splitCell: T, insertHyperlink: s, insertHyperlinkDialogTitle: w, insertHyperlinkAddress: B, insertHyperlinkTitle: I, insertHyperlinkNewWindow: H, insertHyperlinkCancel: L, insertHyperlinkInsert: k, insertFile: n, insertFileDialogTitle: v, insertFileAddress: W, insertFileTitle: D, insertFileCancel: F, insertFileInsert: x, insertImage: M, insertImageDialogTitle: N, insertImageAddress: U, insertImageTitle: E, insertImageAltText: G, insertImageWidth: z, insertImageHeight: O, insertImageCancel: q, insertImageInsert: J, viewHtml: V, viewHtmlDialogTitle: j, viewHtmlCancel: K, viewHtmlUpdate: Q, findReplaceToolTitle: ce, findReplaceDialogTitle: ae, findReplaceTabFind: pe, findReplaceTabReplace: be, findReplaceFindWhat: Pe, findReplaceReplaceWith: ge, findReplaceReplace: Ce, findReplaceReplaceAll: me, findReplaceMatchCase: he, findReplaceMatchWord: fe, findReplaceMatchCyclic: Re, findReplaceUseRegExp: ye, findReplacePrevMatch: ue, findReplaceNextMatch: Se, findReplaceMatches: Ae, findReplaceInvalidRegExp: Te, iframeTitle: we, foreColorLabel: Be, backColorLabel: Ie, cellProperties: He, cellPropertiesLeftTop: Le, cellPropertiesCenterTop: ke, cellPropertiesRightTop: ve, cellPropertiesLeftMiddle: We, cellPropertiesCenterMiddle: De, cellPropertiesRightMiddle: Fe, cellPropertiesLeftBottom: xe, cellPropertiesCenterBottom: Me, cellPropertiesRightBottom: Ne, cellPropertiesNoAlignment: Ue, cellPropertiesWrap: Ee, cellPropertiesFitToCell: Ge, cellPropertiesApplyToAllCells: ze, cellPropertiesWidth: Oe, cellPropertiesApplyToColumn: qe, cellPropertiesHeight: Je, cellPropertiesApplyToRow: Ve, cellPropertiesAlignment: je, cellPropertiesTextControl: Ke, cellPropertiesCellPadding: Qe, cellPropertiesBackground: Xe, cellPropertiesBorderWidth: Ye, cellPropertiesBorderColor: Ze, cellPropertiesBorderStyle: _e, cellPropertiesId: $e, cellPropertiesCssClass: et, cellPropertiesSave: tt, cellPropertiesCancel: ot, tableProperties: rt, tablePropertiesAlignLeft: it, tablePropertiesAlignCenter: lt, tablePropertiesAlignRight: st, tablePropertiesNoAlignment: nt, tablePropertiesLeft: dt, tablePropertiesCenter: ct, tablePropertiesRight: at, tablePropertiesTop: pt, tablePropertiesBottom: bt, tablePropertiesNone: Pt, tablePropertiesUsingScopeAttribute: gt, tablePropertiesUsingIdAttributes: Ct, tablePropertiesRows: mt, tablePropertiesColumns: ht, tablePropertiesWidth: ft, tablePropertiesHeight: Rt, tablePropertiesPosition: yt, tablePropertiesAlignment: ut, tablePropertiesCellSpacing: St, tablePropertiesCellPadding: At, tablePropertiesTableBackground: Tt, tablePropertiesBorderWidth: wt, tablePropertiesBorderColor: Bt, tablePropertiesBorderStyle: It, tablePropertiesCollapseBorders: Ht, tablePropertiesId: Lt, tablePropertiesCssClass: kt, tablePropertiesAccessibility: vt, tablePropertiesCaption: Wt, tablePropertiesCaptionPosition: Dt, tablePropertiesCaptionAlignment: Ft, tablePropertiesHeaderRows: xt, tablePropertiesHeaderCols: Mt, tablePropertiesAssociateHeaders: Nt, tablePropertiesGeneral: Ut, tablePropertiesAdvanced: Et, tablePropertiesSave: Gt, tablePropertiesCancel: zt, borderStyleNone: Ot, borderStyleSolid: qt, borderStyleDotted: Jt, borderStyleDashed: Vt, borderStyleDouble: jt, borderStyleGroove: Kt, borderStyleRidge: Qt, borderStyleInset: Xt, borderStyleOutset: Yt, borderStyleInitial: Zt, borderStyleInherit: _t, borderStyleHidden: $t, sizeAuto: eo, listStyleDisc: to, listStyleCircle: oo, listStyleSquare: ro, listStyleDecimal: io, listStyleUpperRoman: lo, listStyleLowerRoman: so, listStyleUpperLatin: no, listStyleLowerLatin: co }; export { po as keys, ao as messages };