@progress/kendo-react-editor
Version:
React Editor enables users to create rich text content through a WYSIWYG interface. KendoReact Editor package
349 lines (348 loc) • 14.1 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", n = "editor.hyperlink", s = "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", h = "editor.addRowBefore", m = "editor.addRowAfter", f = "editor.addColumnBefore", R = "editor.addColumnAfter", A = "editor.deleteRow", u = "editor.deleteColumn", y = "editor.deleteTable", T = "editor.mergeCells", S = "editor.splitCell", B = "editor.hyperlink-dialog-title", I = "editor.hyperlink-dialog-content-address", w = "editor.hyperlink-dialog-content-title", H = "editor.hyperlink-dialog-content-newwindow", k = "editor.hyperlink-dialog-cancel", v = "editor.hyperlink-dialog-insert", W = "editor.insertfile-dialog-title", L = "editor.insertfile-dialog-content-address", F = "editor.insertfile-dialog-content-title", x = "editor.insertfile-dialog-cancel", M = "editor.insertfile-dialog-insert", D = "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", J = "editor.image-cancel", V = "editor.image-insert", j = "editor.viewHtml", q = "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", ne = "editor.outdent", se = "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", he = "editor.findReplace-replaceAll", me = "editor.findReplace-matchCase", fe = "editor.findReplace-matchWord", Re = "editor.findReplace-matchCyclic", Ae = "editor.findReplace-useRegExp", ue = "editor.findReplace-prevMatch", ye = "editor.findReplace-nextMatch", Te = "editor.findReplace-matches", Se = "editor.findReplace-invalidRegExp", Be = "editor.iframeTitle", Ie = "editorTools.foreColorLabel", we = "editorTools.backColorLabel", He = "editor.cellProperties", ke = "editor.cellPropertiesLeftTop", ve = "editor.cellPropertiesCenterTop", We = "editor.cellPropertiesRightTop", Le = "editor.cellPropertiesLeftMiddle", Fe = "editor.cellPropertiesCenterMiddle", xe = "editor.cellPropertiesRightMiddle", Me = "editor.cellPropertiesLeftBottom", De = "editor.cellPropertiesCenterBottom", Ne = "editor.cellPropertiesRightBottom", Ue = "editor.cellPropertiesNoAlignment", Ee = "editor.cellPropertiesWrap", Ge = "editor.cellPropertiesFitToCell", ze = "editor.cellPropertiesApplyToAllCells", Oe = "editor.cellPropertiesWidth", Je = "editor.cellPropertiesApplyToColumn", Ve = "editor.cellPropertiesHeight", je = "editor.cellPropertiesApplyToRow", qe = "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", nt = "editor.tablePropertiesAlignRight", st = "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", ht = "editor.tablePropertiesRows", mt = "editor.tablePropertiesColumns", ft = "editor.tablePropertiesWidth", Rt = "editor.tablePropertiesHeight", At = "editor.tablePropertiesPosition", ut = "editor.tablePropertiesAlignment", yt = "editor.tablePropertiesCellSpacing", Tt = "editor.tablePropertiesCellPadding", St = "editor.tablePropertiesTableBackground", Bt = "editor.tablePropertiesBorderWidth", It = "editor.tablePropertiesBorderColor", wt = "editor.tablePropertiesBorderStyle", Ht = "editor.tablePropertiesCollapseBorders", kt = "editor.tablePropertiesID", vt = "editor.tablePropertiesCssClass", Wt = "editor.tablePropertiesAccessibility", Lt = "editor.tablePropertiesCaption", Ft = "editor.tablePropertiesCaptionPosition", xt = "editor.tablePropertiesCaptionAlignment", Mt = "editor.tablePropertiesHeaderRows", Dt = "editor.tablePropertiesHeaderCols", Nt = "editor.tablePropertiesAssociateHeaders", Ut = "editor.tablePropertiesGeneral", Et = "editor.tablePropertiesAdvanced", Gt = "editor.tablePropertiesSave", zt = "editor.tablePropertiesCancel", Ot = "editor.borderStyleNone", Jt = "editor.borderStyleSolid", Vt = "editor.borderStyleDotted", jt = "editor.borderStyleDashed", qt = "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 = {
[]: "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"
}, oo = {
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: ne,
orderedList: se,
bulletList: de,
print: d,
selectAll: c,
cleanFormatting: a,
pdf: p,
foregroundColor: b,
backgroundColor: P,
createTable: g,
createTableHint: C,
addRowBefore: h,
addRowAfter: m,
addColumnBefore: f,
addColumnAfter: R,
deleteRow: A,
deleteColumn: u,
deleteTable: y,
mergeCells: T,
splitCell: S,
insertHyperlink: n,
insertHyperlinkDialogTitle: B,
insertHyperlinkAddress: I,
insertHyperlinkTitle: w,
insertHyperlinkNewWindow: H,
insertHyperlinkCancel: k,
insertHyperlinkInsert: v,
insertFile: s,
insertFileDialogTitle: W,
insertFileAddress: L,
insertFileTitle: F,
insertFileCancel: x,
insertFileInsert: M,
insertImage: D,
insertImageDialogTitle: N,
insertImageAddress: U,
insertImageTitle: E,
insertImageAltText: G,
insertImageWidth: z,
insertImageHeight: O,
insertImageCancel: J,
insertImageInsert: V,
viewHtml: j,
viewHtmlDialogTitle: q,
viewHtmlCancel: K,
viewHtmlUpdate: Q,
findReplaceToolTitle: ce,
findReplaceDialogTitle: ae,
findReplaceTabFind: pe,
findReplaceTabReplace: be,
findReplaceFindWhat: Pe,
findReplaceReplaceWith: ge,
findReplaceReplace: Ce,
findReplaceReplaceAll: he,
findReplaceMatchCase: me,
findReplaceMatchWord: fe,
findReplaceMatchCyclic: Re,
findReplaceUseRegExp: Ae,
findReplacePrevMatch: ue,
findReplaceNextMatch: ye,
findReplaceMatches: Te,
findReplaceInvalidRegExp: Se,
iframeTitle: Be,
foreColorLabel: Ie,
backColorLabel: we,
cellProperties: He,
cellPropertiesLeftTop: ke,
cellPropertiesCenterTop: ve,
cellPropertiesRightTop: We,
cellPropertiesLeftMiddle: Le,
cellPropertiesCenterMiddle: Fe,
cellPropertiesRightMiddle: xe,
cellPropertiesLeftBottom: Me,
cellPropertiesCenterBottom: De,
cellPropertiesRightBottom: Ne,
cellPropertiesNoAlignment: Ue,
cellPropertiesWrap: Ee,
cellPropertiesFitToCell: Ge,
cellPropertiesApplyToAllCells: ze,
cellPropertiesWidth: Oe,
cellPropertiesApplyToColumn: Je,
cellPropertiesHeight: Ve,
cellPropertiesApplyToRow: je,
cellPropertiesAlignment: qe,
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: nt,
tablePropertiesNoAlignment: st,
tablePropertiesLeft: dt,
tablePropertiesCenter: ct,
tablePropertiesRight: at,
tablePropertiesTop: pt,
tablePropertiesBottom: bt,
tablePropertiesNone: Pt,
tablePropertiesUsingScopeAttribute: gt,
tablePropertiesUsingIdAttributes: Ct,
tablePropertiesRows: ht,
tablePropertiesColumns: mt,
tablePropertiesWidth: ft,
tablePropertiesHeight: Rt,
tablePropertiesPosition: At,
tablePropertiesAlignment: ut,
tablePropertiesCellSpacing: yt,
tablePropertiesCellPadding: Tt,
tablePropertiesTableBackground: St,
tablePropertiesBorderWidth: Bt,
tablePropertiesBorderColor: It,
tablePropertiesBorderStyle: wt,
tablePropertiesCollapseBorders: Ht,
tablePropertiesId: kt,
tablePropertiesCssClass: vt,
tablePropertiesAccessibility: Wt,
tablePropertiesCaption: Lt,
tablePropertiesCaptionPosition: Ft,
tablePropertiesCaptionAlignment: xt,
tablePropertiesHeaderRows: Mt,
tablePropertiesHeaderCols: Dt,
tablePropertiesAssociateHeaders: Nt,
tablePropertiesGeneral: Ut,
tablePropertiesAdvanced: Et,
tablePropertiesSave: Gt,
tablePropertiesCancel: zt,
borderStyleNone: Ot,
borderStyleSolid: Jt,
borderStyleDotted: Vt,
borderStyleDashed: jt,
borderStyleDouble: qt,
borderStyleGroove: Kt,
borderStyleRidge: Qt,
borderStyleInset: Xt,
borderStyleOutset: Yt,
borderStyleInitial: Zt,
borderStyleInherit: _t,
borderStyleHidden: $t,
sizeAuto: eo
};
export {
oo as keys,
to as messages
};