@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
JavaScript
/**
* @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 = {
[]: "Bold",
[]: "Italic",
[]: "Underline",
[]: "Strikethrough",
[]: "Subscript",
[]: "Superscript",
[]: "Remove hyperlink",
[]: "Undo",
[]: "Redo",
[]: "Font Size",
[$]: "Font Name",
[]: "Format",
[]: "Align text left",
[]: "Align text right",
[]: "Center text",
[]: "Justify",
[]: "Indent",
[]: "Outdent",
[]: "Insert ordered list",
[]: "Insert unordered list",
[]: "Print",
[]: "Select All",
[]: "Clean formatting",
[]: "Export as PDF",
[]: "Color",
[]: "Background color",
// Tables
[]: "Create a table",
[]: "Create a {0} x {1} table",
[]: "Add row above",
[]: "Add row below",
[]: "Add column on the left",
[]: "Add column on the right",
[]: "Delete row",
[]: "Delete column",
[]: "Delete table",
[]: "Merge cells",
[]: "Split cell",
// Insert Link
[]: "Insert hyperlink",
[]: "Insert hyperlink",
[]: "Web address",
[]: "Title",
[]: "Open link in new window",
[]: "Cancel",
[]: "Insert",
// Insert File
[]: "Insert file",
[]: "Insert file",
[]: "Web address",
[]: "Title",
[]: "Cancel",
[]: "Insert",
// Insert Image
[]: "Insert image",
[]: "Insert image",
[]: "Web address",
[]: "Title",
[]: "Alternate text",
[]: "Width (px)",
[]: "Height (px)",
[]: "Cancel",
[]: "Insert",
// View HTML
[]: "View HTML",
[]: "View HTML",
[]: "Cancel",
[]: "Update",
// Find and Replace
[]: "Find and Replace",
[]: "Find and Replace",
[]: "Find",
[]: "Replace",
[]: "Find What:",
[]: "Replace With",
[]: "Replace",
[]: "Replace All",
[]: "Match Case",
[]: "Match whole word only",
[]: "Match cyclic (Wrap around)",
[]: "Regular Expression",
[]: "Prev",
[]: "Next",
[]: "{0} of {1} matches",
[]: "Invalid regular expression.",
[]: "Editable area. Press Alt + F10 for toolbar.",
[]: "Fore Color",
[]: "Back Color",
[]: "Cell properties",
[]: "Left Top",
[]: "Center Top",
[]: "Right Top",
[]: "Left Middle",
[]: "Center Middle",
[]: "Right Middle",
[]: "Left Bottom",
[]: "Center Bottom",
[]: "Right Bottom",
[]: "No Alignment",
[]: "Wrap",
[]: "Fit to cell",
[]: "Apply to all cells",
[]: "Width",
[]: "apply to column",
[]: "Height",
[]: "apply to row",
[]: "Alignment",
[]: "Text control",
[]: "Cell padding",
[]: "Background",
[]: "Border width",
[]: "Border color",
[]: "Border style",
[$e]: "ID",
[]: "CSS class",
[]: "Save",
[]: "Cancel",
[]: "Table properties",
[]: "Align Left",
[]: "Align Center",
[]: "Align Right",
[]: "No Alignment",
[]: "Left",
[]: "Center",
[]: "Right",
[]: "Top",
[]: "Bottom",
[]: "None",
// eslint-disable-next-line @typescript-eslint/quotes
[]: "Using 'scope' attribute",
// eslint-disable-next-line @typescript-eslint/quotes
[]: "Using 'id' attributes",
[]: "Rows",
[]: "Columns",
[]: "Width",
[]: "Height",
[]: "Position",
[]: "Alignment",
[]: "Cell spacing",
[]: "Cell padding",
[]: "Table background",
[]: "Border width",
[]: "Border color",
[]: "Border style",
[]: "Collapse borders",
[]: "ID",
[]: "CSS class",
[]: "Accessibility",
[]: "Caption",
[]: "Position",
[]: "Alignment",
[]: "Header rows",
[]: "Header cols",
[]: "Associate headers",
[]: "General",
[]: "Advanced",
[]: "Save",
[]: "Cancel",
[]: "None",
[]: "Solid",
[]: "Dotted",
[]: "Dashed",
[]: "Double",
[]: "Groove",
[]: "Ridge",
[]: "Inset",
[]: "Outset",
[]: "Initial",
[]: "Inherit",
[$t]: "Hidden",
[]: "Auto",
[]: "Disc",
[]: "Circle",
[]: "Square",
[]: "Decimal",
[]: "Upper roman",
[]: "Lower roman",
[]: "Upper latin",
[]: "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
};