UNPKG

@syncfusion/ej2-richtexteditor

Version:
2,367 lines (2,363 loc) 1.94 MB
import { isNullOrUndefined, Browser, addClass, removeClass, selectAll as selectAll$1, createElement, detach, SanitizeHtmlHelper, extend, append, closest, prepend, setStyleAttribute, attributes, EventHandler, select, formatUnit, debounce, Observer, getInstance, Ajax, Base, Property, Event as Event$1, NotifyPropertyChanges, getComponent, getEnumValue, Complex, ChildProperty, Component, updateCSSText, print, L10n, compile, Touch, KeyboardEvents as KeyboardEvents$1, getUniqueID } from '@syncfusion/ej2-base'; import { Toolbar as Toolbar$1 } from '@syncfusion/ej2-navigations'; import { DropDownButton } from '@syncfusion/ej2-splitbuttons'; import { Tooltip, Popup, Dialog, getScrollableParent, isCollide } from '@syncfusion/ej2-popups'; import { ColorPicker, TextBox, Uploader, NumericTextBox } from '@syncfusion/ej2-inputs'; import { CheckBox, Button, RadioButton } from '@syncfusion/ej2-buttons'; import { Mention } from '@syncfusion/ej2-dropdowns'; import { AjaxSettings, ContextMenuSettings, DetailsViewSettings, NavigationPaneSettings, SearchSettings, ToolbarSettings as ToolbarSettings$1, UploadSettings, FileManager as FileManager$1, ContextMenu, DetailsView, NavigationPane, Toolbar as Toolbar$2 } from '@syncfusion/ej2-filemanager'; /** * @hidden * @deprecated */ const created = 'create'; /** * @hidden * @deprecated */ const destroyed = 'destroy'; /** * @hidden * @deprecated */ const tableclass = 'tableclass'; /** * @hidden * @deprecated */ const load = 'load'; /** * Specifies Rich Text Editor internal events */ /** * @hidden * @deprecated */ const initialLoad = 'initial-load'; /** * @hidden * @deprecated */ const contentChanged = 'content-changed'; /** * @hidden * @deprecated */ const initialEnd = 'initial-end'; /** * @hidden * @deprecated */ const iframeMouseDown = 'iframe-click'; /** * @hidden * @deprecated */ const destroy = 'destroy'; /** * @hidden * @deprecated */ const toolbarClick = 'toolbarClick'; /** * @hidden * @deprecated */ const toolbarRefresh = 'toolbar-refresh'; /** * @hidden * @deprecated */ const slashMenuOpening = 'slash-menu-opening'; /** * @hidden * @deprecated */ const refreshBegin = 'refresh-begin'; /** * @hidden * @deprecated */ const toolbarUpdated = 'toolbar-updated'; /** * @hidden * @deprecated */ const bindOnEnd = 'bind-on-end'; /** * @hidden * @deprecated */ const htmlToolbarClick = 'html-toolbar-click'; /** * @hidden * @deprecated */ const markdownToolbarClick = 'markdown-toolbar-click'; /** * @hidden * @deprecated */ const modelChanged = 'model-changed'; /** * @hidden * @deprecated */ const tableModulekeyUp = 'tableModulekeyUp'; /** * @hidden * @deprecated */ const keyUp = 'keyUp'; /** * @hidden * @deprecated */ const keyDown = 'keyDown'; /** * @hidden * @deprecated */ const onImport = 'onImport'; /** * @hidden * @deprecated */ const onExport = 'onExport'; /** * @hidden * @deprecated */ const mouseUp = 'mouseUp'; /** * @hidden * @deprecated */ const toolbarCreated = 'toolbarCreated'; /** * @hidden * @deprecated */ const toolbarRenderComplete = 'toolbarRenderComplete'; /** * @hidden * @deprecated */ const enableFullScreen = 'enableFullScreen'; /** * @hidden * @deprecated */ const disableFullScreen = 'disableFullScreen'; /** * @hidden * @deprecated */ const dropDownSelect = 'dropDownSelect'; /** * @hidden * @deprecated */ const beforeDropDownItemRender = 'beforeDropDownItemRender'; /** * @hidden * @deprecated */ const execCommandCallBack = 'execCommandCallBack'; /** * @hidden * @deprecated */ const imageToolbarAction = 'image-toolbar-action'; /** * @hidden * @deprecated */ const audioToolbarAction = 'audio-toolbar-action'; /** * @hidden * @deprecated */ const videoToolbarAction = 'video-toolbar-action'; /** * @hidden * @deprecated */ const linkToolbarAction = 'link-toolbar-action'; /** * @hidden * @deprecated */ const windowResize = 'resize'; /** * @hidden * @deprecated */ const resizeStart = 'resizeStart'; /** * @hidden * @deprecated */ const onResize = 'resizing'; /** * @hidden * @deprecated */ const resizeStop = 'resizeStop'; /** * @hidden * @deprecated */ const undo = 'undo'; /** * @hidden * @deprecated */ const redo = 'redo'; /** * @hidden * @deprecated */ const insertLink = 'insertLink'; /** * @hidden * @deprecated */ const unLink = 'unLink'; /** * @hidden * @deprecated */ const editLink = 'editLink'; /** * @hidden * @deprecated */ const openLink = 'openLink'; /** * @hidden * @deprecated */ const actionBegin = 'actionBegin'; /** * @hidden * @deprecated */ const actionComplete = 'actionComplete'; /** * @hidden * @deprecated */ const updatedToolbarStatus = 'updatedToolbarStatus'; /** * @hidden * @deprecated */ const actionSuccess = 'actionSuccess'; /** * @hidden * @deprecated */ const updateToolbarItem = 'updateToolbarItem'; /** * @hidden * @deprecated */ const insertImage = 'insertImage'; /** * @hidden * @deprecated */ const insertAudio = 'insertAudio'; /** * @hidden * @deprecated */ const insertVideo = 'insertVideo'; /** * @hidden * @deprecated */ const insertCompleted = 'insertCompleted'; /** * @hidden * @deprecated */ const imageLeft = 'justifyLeft'; /** * @hidden * @deprecated */ const imageRight = 'justifyRight'; /** * @hidden * @deprecated */ const imageCenter = 'justifyCenter'; /** * @hidden * @deprecated */ const imageBreak = 'break'; /** * @hidden * @deprecated */ const imageInline = 'inline'; /** * @hidden * @deprecated */ const imageLink = 'insertImgLink'; /** * @hidden * @deprecated */ const imageAlt = 'imgAltText'; /** * @hidden * @deprecated */ const imageDelete = 'delete'; /** * @hidden * @deprecated */ const audioDelete = 'delete'; /** * @hidden * @deprecated */ const videoDelete = 'delete'; /** * @hidden * @deprecated */ const imageCaption = 'caption'; /** * @hidden * @deprecated */ const imageSize = 'imageSize'; /** * @hidden * @deprecated */ const videoSize = 'videoSize'; /** * @hidden * @deprecated */ const sourceCode = 'sourceCode'; /** * @hidden * @deprecated */ const updateSource = 'updateSource'; /** * @hidden * @deprecated */ const toolbarOpen = 'toolbarOpen'; /** * @hidden * @deprecated */ const beforeDropDownOpen = 'beforeDropDownOpen'; /** * @hidden * @deprecated */ const selectionSave = 'selection-save'; /** * @hidden * @deprecated */ const selectionRestore = 'selection-restore'; /** * @hidden * @deprecated */ const expandPopupClick = 'expandPopupClick'; /** * @hidden * @deprecated */ const count = 'count'; /** * @hidden * @deprecated */ const contentFocus = 'contentFocus'; /** * @hidden * @deprecated */ const contentBlur = 'contentBlur'; /** * @hidden * @deprecated */ const mouseDown = 'mouseDown'; /** * @hidden * @deprecated */ const sourceCodeMouseDown = 'sourceCodeMouseDown'; /** * @hidden * @deprecated */ const editAreaClick = 'editAreaClick'; /** * @hidden * @deprecated */ const scroll = 'scroll'; /** * @hidden * @deprecated */ const contentscroll = 'contentscroll'; /** * @hidden * @deprecated */ const colorPickerChanged = 'colorPickerChanged'; /** * @hidden * @deprecated */ const focusChange = 'focusChange'; /** * @hidden * @deprecated */ const selectAll = 'selectAll'; /** * @hidden * @deprecated */ const selectRange = 'selectRange'; /** * @hidden * @deprecated */ const getSelectedHtml = 'getSelectedHtml'; /** * @hidden * @deprecated */ const renderInlineToolbar = 'renderInlineToolbar'; /** * @hidden * @deprecated */ const paste = 'paste-content'; /** * @hidden * @deprecated */ const imgModule = 'imageModule'; /** * @hidden * @deprecated */ const rtlMode = 'rtl-mode'; /** * @hidden * @deprecated */ const createTable = 'createTable'; /** * @hidden * @deprecated */ const docClick = 'docClick'; /** * @hidden * @deprecated */ const tableToolbarAction = 'table-toolbar-action'; /** * @hidden * @deprecated */ const checkUndo = 'checkUndoStack'; /** * @hidden * @deprecated */ const readOnlyMode = 'readOnlyMode'; /** * @hidden * @deprecated */ const pasteClean = 'pasteClean'; /** * @hidden * @deprecated */ const enterHandler = 'enterHandler'; /** * @hidden * @deprecated */ const beforeDialogOpen = 'beforeDialogOpen'; /** * @hidden * @deprecated */ const clearDialogObj = 'clearDialogObj'; /** * @hidden * @deprecated */ const hideTableQuickToolbar = 'hideTableQuickToolbar'; /** * @hidden * @deprecated */ const dialogOpen = 'dialogOpen'; /** * @hidden * @deprecated */ const beforeDialogClose = 'beforeDialogClose'; /** * @hidden * @deprecated */ const dialogClose = 'dialogClose'; /** * @hidden * @deprecated */ const beforeQuickToolbarOpen = 'beforeQuickToolbarOpen'; /** * @hidden * @deprecated */ const quickToolbarOpen = 'quickToolbarOpen'; /** * @hidden * @deprecated */ const quickToolbarClose = 'quickToolbarClose'; /** * @hidden * @deprecated */ const popupHide = 'popupHide'; /** * @hidden * @deprecated */ const imageSelected = 'imageSelected'; /** * @hidden * @deprecated */ const imageUploading = 'imageUploading'; /** * @hidden * @deprecated */ const imageUploadSuccess = 'imageUploadSuccess'; /** * @hidden * @deprecated */ const imageUploadFailed = 'imageUploadFailed'; /** * @hidden * @deprecated */ const imageRemoving = 'imageRemoving'; /** * @hidden * @deprecated */ const fileSelected = 'fileSelected'; /** * @hidden * @deprecated */ const fileUploading = 'fileUploading'; /** * @hidden * @deprecated */ const fileUploadSuccess = 'fileUploadSuccess'; /** * @hidden * @deprecated */ const fileUploadFailed = 'fileUploadFailed'; /** * @hidden * @deprecated */ const fileRemoving = 'fileRemoving'; /** * @hidden * @deprecated */ const afterImageDelete = 'afterImageDelete'; /** * @hidden * @deprecated */ const afterMediaDelete = 'afterMediaDelete'; /** * @hidden * @deprecated */ const drop = 'drop'; /** * @hidden * @deprecated */ const renderQuickToolbar = 'renderQuickToolbar'; /** * @hidden * @deprecated */ const xhtmlValidation = 'xhtmlValidation'; /** * @hidden * @deprecated */ const beforeImageUpload = 'beforeImageUpload'; /** * @hidden * @deprecated */ const beforeFileUpload = 'beforeFileUpload'; /** * @hidden * @deprecated */ const resizeInitialized = 'resizeInitialized'; /** * @hidden * @deprecated */ const renderFileManager = 'renderFileManager'; /** * @hidden * @deprecated */ const beforeImageDrop = 'beforeImageDrop'; /** * @hidden * @deprecated */ const dynamicModule = 'dynamicModule'; /** * @hidden * @deprecated */ const beforePasteCleanup = 'beforePasteCleanup'; /** * @hidden * @deprecated */ const afterPasteCleanup = 'afterPasteCleanup'; /** * @hidden * @deprecated */ const updateTbItemsStatus = 'updateTbItemsStatus'; /** * @hidden * @deprecated */ const showLinkDialog = 'showLinkDialog'; /** * @hidden * @deprecated */ const closeLinkDialog = 'closeLinkDialog'; /** * @hidden * @deprecated */ const showImageDialog = 'showImageDialog'; /** * @hidden * @deprecated */ const showAudioDialog = 'showAudioDialog'; /** * @hidden * @deprecated */ const showVideoDialog = 'showVideoDialog'; /** * @hidden * @deprecated */ const closeImageDialog = 'closeImageDialog'; /** * @hidden * @deprecated */ const closeAudioDialog = 'closeAudioDialog'; /** * @hidden * @deprecated */ const closeVideoDialog = 'closeVideoDialog'; /** * @hidden * @deprecated */ const showTableDialog = 'showTableDialog'; /** * @hidden * @deprecated */ const closeTableDialog = 'closeTableDialog'; /** * @hidden * @deprecated */ const bindCssClass = 'bindCssClass'; /** * @hidden * @deprecated */ const formatPainterClick = 'formatPainterClick'; /** * @hidden * @deprecated */ const formatPainterDoubleClick = 'formatPainterDoubleClick'; /** * @hidden * @deprecated */ const emojiPicker = 'emojiPicker'; /** * @hidden * @deprecated */ const destroyTooltip = 'destroyTooltip'; /** * @hidden * @deprecated */ const hidePopup = 'hidePopup'; /** * @hidden * @deprecated */ const cleanupResizeElements = 'cleanupResizeElements'; /** * @hidden * @deprecated */ const afterKeyDown = 'afterKeyDown'; /** * @hidden * @deprecated */ const updateValueOnIdle = 'updateValueOnIdle'; /** * @hidden * @deprecated */ const documentClickClosedBy = 'documentClickClosedBy'; /** * @hidden * @deprecated */ const showColorPicker = 'showColorPicker'; /** * @hidden * @deprecated */ const closeTooltip = 'closeTooltip'; /** * @hidden * @deprecated */ const autoResize = 'autoResize'; /** * @hidden * @deprecated */ const blockEmptyNodes = `address:empty, article:empty, aside:empty, blockquote:empty, details:empty, dd:empty, div:empty, dl:empty, dt:empty, fieldset:empty, footer:empty,form:empty, h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty, header:empty, hgroup:empty, li:empty, main:empty, nav:empty, noscript:empty, output:empty, p:empty, pre:empty, section:empty, td:empty, th:empty`; /** * @hidden * @deprecated */ const inlineEmptyNodes = `a:empty, abbr:empty, acronym:empty, b:empty, bdi:empty, bdo:empty, big:empty, button:empty, canvas:empty, cite:empty, code:empty, data:empty, datalist:empty, del:empty, dfn:empty, em:empty, font:empty, i:empty, iframe:empty, ins:empty, kbd:empty, label:empty, map:empty, mark:empty, meter:empty, noscript:empty, object:empty, output:empty, picture:empty, progress:empty, q:empty, ruby:empty, s:empty, samp:empty, script:empty, select:empty, slot:empty, small:empty, span:empty, strong:empty, strike:empty, sub:empty, sup:empty, svg:empty, template:empty, textarea:empty, time:empty, u:empty, tt:empty, var:empty, wbr:empty`; /** * @hidden * @deprecated */ const supportedUnits = ['px', 'em', 'rem', 'pt', 'cm', 'mm', 'in', 'pc', 'vw', 'vh', 'vmin', 'vmax']; /** * @hidden * @deprecated */ const conversionFactors = { 'px': { 'px': 1, 'em': 0.0625, 'rem': 0.0625, 'pt': 0.75, 'cm': 0.0264583, 'mm': 0.0026458, 'in': 0.0104167, 'pc': 0.0625, 'vw': 0.00625, 'vh': 0.00625, 'vmin': 0.00625, 'vmax': 0.00625 }, 'em': { 'px': 16, 'em': 1, 'rem': 1, 'pt': 12, 'cm': 0.423333, 'mm': 0.0423333, 'in': 0.166667, 'pc': 0.0625, 'vw': 1, 'vh': 1, 'vmin': 1, 'vmax': 1 }, 'rem': { 'px': 16, 'em': 1, 'rem': 1, 'pt': 12, 'cm': 0.423333, 'mm': 0.0423333, 'in': 0.166667, 'pc': 0.0625, 'vw': 1, 'vh': 1, 'vmin': 1, 'vmax': 1 }, 'pt': { 'px': 1.33333, 'em': 0.0833333, 'rem': 0.0833333, 'pt': 1, 'cm': 0.0352778, 'mm': 0.0035278, 'in': 0.0138889, 'pc': 0.0416667, 'vw': 0.00416667, 'vh': 0.00416667, 'vmin': 0.00416667, 'vmax': 0.00416667 }, 'cm': { 'px': 37.7953, 'em': 2.3622, 'rem': 2.3622, 'pt': 28.3465, 'cm': 1, 'mm': 0.1, 'in': 0.393701, 'pc': 0.148148, 'vw': 0.0377953, 'vh': 0.0377953, 'vmin': 0.0377953, 'vmax': 0.0377953 }, 'mm': { 'px': 3.77953, 'em': 0.23622, 'rem': 0.23622, 'pt': 2.83465, 'cm': 10, 'mm': 1, 'in': 0.0393701, 'pc': 0.0148148, 'vw': 0.00377953, 'vh': 0.00377953, 'vmin': 0.00377953, 'vmax': 0.00377953 }, 'in': { 'px': 96, 'em': 6, 'rem': 6, 'pt': 72, 'cm': 2.54, 'mm': 25.4, 'in': 1, 'pc': 0.375, 'vw': 0.09375, 'vh': 0.09375, 'vmin': 0.09375, 'vmax': 0.09375 }, 'pc': { 'px': 16, 'em': 1, 'rem': 1, 'pt': 12, 'cm': 0.423333, 'mm': 0.0423333, 'in': 0.166667, 'pc': 1, 'vw': 0.0625, 'vh': 0.0625, 'vmin': 0.0625, 'vmax': 0.0625 }, 'vw': { 'px': 160, 'em': 10, 'rem': 10, 'pt': 120, 'cm': 4.23333, 'mm': 0.423333, 'in': 1.66667, 'pc': 0.625, 'vw': 1, 'vh': 1, 'vmin': 1, 'vmax': 1 }, 'vh': { 'px': 160, 'em': 10, 'rem': 10, 'pt': 120, 'cm': 4.23333, 'mm': 0.423333, 'in': 1.66667, 'pc': 0.625, 'vw': 1, 'vh': 1, 'vmin': 1, 'vmax': 1 }, 'vmin': { 'px': 160, 'em': 10, 'rem': 10, 'pt': 120, 'cm': 4.23333, 'mm': 0.423333, 'in': 1.66667, 'pc': 0.625, 'vw': 1, 'vh': 1, 'vmin': 1, 'vmax': 1 }, 'vmax': { 'px': 160, 'em': 10, 'rem': 10, 'pt': 120, 'cm': 4.23333, 'mm': 0.423333, 'in': 1.66667, 'pc': 0.625, 'vw': 1, 'vh': 1, 'vmin': 1, 'vmax': 1 } }; /** * @hidden * @deprecated */ const onHandleFontsizeChange = 'onHandleFontsizeChange'; /** * @hidden * @deprecated */ const preventQuickToolbarClose = 'preventQuickToolbarClose'; /** * Rich Text Editor classes defined here. */ /** * @hidden * @deprecated */ const CLS_RTE = 'e-richtexteditor'; /** * @hidden * @deprecated */ const CLS_RTL = 'e-rtl'; /** * @hidden * @deprecated */ const CLS_CONTENT = 'e-content'; /** * @hidden * @deprecated */ const CLS_DISABLED = 'e-disabled'; /** * @hidden * @deprecated */ const CLS_SCRIPT_SHEET = 'rte-iframe-script-sheet'; /** * @hidden * @deprecated */ const CLS_STYLE_SHEET = 'rte-iframe-style-sheet'; /** * @hidden * @deprecated */ const CLS_RTE_CONTAINER = 'e-rte-container'; /** * @hidden * @deprecated */ const CLS_TOOLBAR = 'e-rte-toolbar'; /** * @hidden * @deprecated */ const CLS_TB_FIXED = 'e-rte-tb-fixed'; /** * @hidden * @deprecated */ const CLS_TB_FLOAT = 'e-rte-tb-float'; /** * @hidden * @deprecated */ const CLS_INLINE = 'e-rte-inline'; /** * @hidden * @deprecated */ const CLS_TB_INLINE = 'e-rte-tb-inline'; /** * @hidden * @deprecated */ const CLS_RTE_EXPAND_TB = 'e-rte-tb-expand'; /** * @hidden * @deprecated */ const CLS_FULL_SCREEN = 'e-rte-full-screen'; /** * @hidden * @deprecated */ const CLS_QUICK_TB = 'e-rte-quick-toolbar'; /** * @hidden * @deprecated */ const CLS_TEXT_QUICK_TB = 'e-rte-text-quicktoolbar'; /** * @hidden * @deprecated */ const CLS_POP = 'e-rte-pop'; /** * @hidden * @deprecated */ const CLS_TB_STATIC = 'e-tb-static'; /** * @hidden * @deprecated */ const CLS_QUICK_POP = 'e-rte-quick-popup'; /** * @hidden * @deprecated */ const CLS_QUICK_DROPDOWN = 'e-quick-dropdown'; /** * @hidden * @deprecated */ const CLS_IMAGE_POP = 'e-rte-image-popup'; /** * @hidden * @deprecated */ const CLS_TEXT_POP = 'e-rte-text-popup'; /** * @hidden * @deprecated */ const CLS_INLINE_POP = 'e-rte-inline-popup'; /** * @hidden * @deprecated */ const CLS_INLINE_DROPDOWN = 'e-rte-inline-dropdown'; /** * @hidden * @deprecated */ const CLS_DROPDOWN_POPUP = 'e-rte-dropdown-popup'; /** * @hidden * @deprecated */ const CLS_DROPDOWN_ICONS = 'e-rte-dropdown-icons'; /** * @hidden * @deprecated */ const CLS_DROPDOWN_ITEMS = 'e-rte-dropdown-items'; /** * @hidden * @deprecated */ const CLS_DROPDOWN_BTN = 'e-rte-dropdown-btn'; /** * @hidden * @deprecated */ const CLS_RTE_CONTENT = 'e-rte-content'; /** * @hidden * @deprecated */ const CLS_TB_ITEM = 'e-toolbar-item'; /** * @hidden * @deprecated */ const CLS_TB_EXTENDED = 'e-toolbar-extended'; /** * @hidden * @deprecated */ const CLS_TB_WRAP = 'e-toolbar-wrapper'; /** * @hidden * @deprecated */ const CLS_POPUP = 'e-popup'; /** * @hidden * @deprecated */ const CLS_SEPARATOR = 'e-separator'; /** * @hidden * @deprecated */ const CLS_MINIMIZE = 'e-minimize'; /** * @hidden * @deprecated */ const CLS_MAXIMIZE = 'e-maximize'; /** * @hidden * @deprecated */ const CLS_BACK = 'e-back'; /** * @hidden * @deprecated */ const CLS_SHOW = 'e-show'; /** * @hidden * @deprecated */ const CLS_HIDE = 'e-hide'; /** * @hidden * @deprecated */ const CLS_VISIBLE = 'e-visible'; /** * @hidden * @deprecated */ const CLS_FOCUS = 'e-focused'; /** * @hidden * @deprecated */ const CLS_RM_WHITE_SPACE = 'e-remove-white-space'; /** * @hidden * @deprecated */ const CLS_IMGRIGHT = 'e-imgright'; /** * @hidden * @deprecated */ const CLS_IMGLEFT = 'e-imgleft'; /** * @hidden * @deprecated */ const CLS_IMGCENTER = 'e-imgcenter'; /** * @hidden * @deprecated */ const CLS_IMGBREAK = 'e-imgbreak'; /** * @hidden * @deprecated */ const CLS_AUDIOBREAK = 'e-audio-break'; /** * @hidden * @deprecated */ const CLS_CLICKELEM = 'e-clickelem'; /** * @hidden * @deprecated */ const CLS_VID_CLICK_ELEM = 'e-video-clickelem'; /** * @hidden * @deprecated */ const CLS_AUDIOWRAP = 'e-audio-wrap'; /** * @hidden * @deprecated */ const CLS_VIDEOWRAP = 'e-video-wrap'; /** * @hidden * @deprecated */ const CLS_VIDEOBREAK = 'e-video-break'; /** * @hidden * @deprecated */ const CLS_CAPTION = 'e-img-caption'; /** * @hidden * @deprecated */ const CLS_RTE_CAPTION = 'e-rte-img-caption'; /** * @hidden * @deprecated */ const CLS_CAPINLINE = 'e-caption-inline'; /** * @hidden * @deprecated */ const CLS_IMGINLINE = 'e-imginline'; /** * @hidden * @deprecated */ const CLS_AUDIOINLINE = 'e-audio-inline'; /** * @hidden * @deprecated */ const CLS_VIDEOINLINE = 'e-video-inline'; /** * @hidden * @deprecated */ const CLS_COUNT = 'e-rte-character-count'; /** * @hidden * @deprecated */ const CLS_WARNING = 'e-warning'; /** * @hidden * @deprecated */ const CLS_ERROR = 'e-error'; /** * @hidden * @deprecated */ const CLS_ICONS = 'e-icons'; /** * @hidden * @deprecated */ const CLS_ACTIVE = 'e-active'; /** * @hidden * @deprecated */ const CLS_EXPAND_OPEN = 'e-expand-open'; /** * @hidden * @deprecated */ const CLS_RTE_ELEMENTS = 'e-rte-elements'; /** * @hidden * @deprecated */ const CLS_TB_BTN = 'e-tbar-btn'; /** * @hidden * @deprecated */ const CLS_HR_SEPARATOR = 'e-rte-horizontal-separator'; /** * @hidden * @deprecated */ const CLS_TB_IOS_FIX = 'e-tbar-ios-fixed'; /** * @hidden * @deprecated */ const CLS_LIST_PRIMARY_CONTENT = 'e-rte-list-primary-content'; /** * @hidden * @deprecated */ const CLS_NUMBERFORMATLIST_TB_BTN = 'e-rte-numberformatlist-dropdown'; /** * @hidden * @deprecated */ const CLS_BULLETFORMATLIST_TB_BTN = 'e-rte-bulletformatlist-dropdown'; /** * @hidden * @deprecated */ const CLS_FORMATS_TB_BTN = 'e-formats-tbar-btn'; /** * @hidden * @deprecated */ const CLS_FONT_NAME_TB_BTN = 'e-font-name-tbar-btn'; /** * @hidden * @deprecated */ const CLS_FONT_SIZE_TB_BTN = 'e-font-size-tbar-btn'; /** * @hidden * @deprecated */ const CLS_ALIGN_TB_BTN = 'e-alignment-tbar-btn'; /** * @hidden * @deprecated */ const CLS_FONT_COLOR_TARGET = 'e-rte-fontcolor-element'; /** * @hidden * @deprecated */ const CLS_BACKGROUND_COLOR_TARGET = 'e-rte-backgroundcolor-element'; /** * @hidden * @deprecated */ const CLS_COLOR_CONTENT = 'e-rte-color-content'; /** * @hidden * @deprecated */ const CLS_FONT_COLOR_DROPDOWN = 'e-rte-fontcolor-dropdown'; /** * @hidden * @deprecated */ const CLS_BACKGROUND_COLOR_DROPDOWN = 'e-rte-backgroundcolor-dropdown'; /** * @hidden * @deprecated */ const CLS_COLOR_PALETTE = 'e-rte-square-palette'; /** * @hidden * @deprecated */ const CLS_FONT_COLOR_PICKER = 'e-rte-fontcolor-colorpicker'; /** * @hidden * @deprecated */ const CLS_BACKGROUND_COLOR_PICKER = 'e-rte-backgroundcolor-colorpicker'; /** * @hidden * @deprecated */ const CLS_RTE_READONLY = 'e-rte-readonly'; /** * @hidden * @deprecated */ const CLS_TABLE_SEL = 'e-cell-select'; /** * @hidden * @deprecated */ const CLS_TABLE_SEL_END = 'e-cell-select-end'; /** * @hidden * @deprecated */ const CLS_TABLE_MULTI_CELL = 'e-multi-cells-select'; /** * @hidden * @deprecated */ const CLS_TB_DASH_BOR = 'e-dashed-border'; /** * @hidden * @deprecated */ const CLS_TB_ALT_BOR = 'e-alternate-border'; /** * @hidden * @deprecated */ const CLS_TB_COL_RES = 'e-column-resize'; /** * @hidden * @deprecated */ const CLS_TB_ROW_RES = 'e-row-resize'; /** * @hidden * @deprecated */ const CLS_TB_BOX_RES = 'e-table-box'; /** * @hidden * @deprecated */ const CLS_RTE_HIDDEN = 'e-rte-hidden'; /** * @hidden * @deprecated */ const CLS_RTE_PASTE_KEEP_FORMAT = 'e-rte-keepformat'; /** * @hidden * @deprecated */ const CLS_RTE_PASTE_REMOVE_FORMAT = 'e-rte-removeformat'; /** * @hidden * @deprecated */ const CLS_RTE_PASTE_PLAIN_FORMAT = 'e-rte-plainformat'; /** * @hidden * @deprecated */ const CLS_RTE_PASTE_OK = 'e-rte-pasteok'; /** * @hidden * @deprecated */ const CLS_RTE_PASTE_CANCEL = 'e-rte-pastecancel'; /** * @hidden * @deprecated */ const CLS_RTE_DIALOG_MIN_HEIGHT = 'e-rte-dialog-minheight'; /** * @hidden * @deprecated */ const CLS_RTE_RES_HANDLE = 'e-resize-handle'; /** * @hidden * @deprecated */ const CLS_RTE_RES_EAST = 'e-south-east'; /** * @hidden * @deprecated */ const CLS_RTE_IMAGE = 'e-rte-image'; /** * @hidden * @deprecated */ const CLS_RESIZE = 'e-resize'; /** * @hidden * @deprecated */ const CLS_IMG_FOCUS = 'e-img-focus'; /** * @hidden * @deprecated */ const CLS_AUD_FOCUS = 'e-audio-focus'; /** * @hidden * @deprecated */ const CLS_VID_FOCUS = 'e-video-focus'; /** * @hidden * @deprecated */ const CLS_RTE_DRAG_IMAGE = 'e-rte-drag-image'; /** * @hidden * @deprecated */ const CLS_RTE_UPLOAD_POPUP = 'e-rte-upload-popup'; /** * @hidden * @deprecated */ const CLS_POPUP_OPEN = 'e-popup-open'; /** * @hidden * @deprecated */ const CLS_IMG_RESIZE = 'e-img-resize'; /** * @hidden * @deprecated */ const CLS_DROPAREA = 'e-droparea'; /** * @hidden * @deprecated */ const CLS_IMG_INNER = 'e-img-inner'; /** * @hidden * @deprecated */ const CLS_UPLOAD_FILES = 'e-upload-files'; /** * @hidden * @deprecated */ const CLS_RTE_DIALOG_UPLOAD = 'e-rte-dialog-upload'; /** * @hidden * @deprecated */ const CLS_RTE_RES_CNT = 'e-rte-resize'; /** * @hidden * @deprecated */ const CLS_CUSTOM_TILE = 'e-custom-tile'; /** * @hidden * @deprecated */ const CLS_NOCOLOR_ITEM = 'e-nocolor-item'; /** * @hidden * @deprecated */ const CLS_TABLE = 'e-rte-table'; /** * @hidden * @deprecated */ const CLS_TABLE_BORDER = 'e-rte-table-border'; /** * @hidden * @deprecated */ const CLS_RTE_TABLE_RESIZE = 'e-rte-table-resize'; /** * @hidden * @deprecated */ const CLS_RTE_FIXED_TB_EXPAND = 'e-rte-fixed-tb-expand'; /** * @hidden * @deprecated */ const CLS_RTE_TB_ENABLED = 'e-rte-toolbar-enabled'; /** * @hidden * @deprecated */ const CLS_RTE_RES_WEST = 'e-south-west'; /** * @hidden * @deprecated */ const CLS_RTE_SOURCE_CODE_TXTAREA = 'e-rte-srctextarea'; /** * @hidden * @deprecated */ const ALLOWED_ACTIONKEYS = ['Enter', 'ArrowRight', 'ArrowLeft']; /** * Defines types of Render * * @hidden * @deprecated */ var RenderType; (function (RenderType) { /* eslint-disable */ /** Defines RenderType as Toolbar */ RenderType[RenderType["Toolbar"] = 0] = "Toolbar"; /** Defines RenderType as Content */ RenderType[RenderType["Content"] = 1] = "Content"; /** Defines RenderType as Popup */ RenderType[RenderType["Popup"] = 2] = "Popup"; /** Defines RenderType as LinkToolbar */ RenderType[RenderType["LinkToolbar"] = 3] = "LinkToolbar"; /** Defines RenderType as TextToolbar */ RenderType[RenderType["TextToolbar"] = 4] = "TextToolbar"; /** Defines RenderType as ImageToolbar */ RenderType[RenderType["ImageToolbar"] = 5] = "ImageToolbar"; /** Defines RenderType as AudioToolbar */ RenderType[RenderType["AudioToolbar"] = 6] = "AudioToolbar"; /** Defines RenderType as AudioToolbar */ RenderType[RenderType["VideoToolbar"] = 7] = "VideoToolbar"; /** Defines RenderType as InlineToolbar */ RenderType[RenderType["InlineToolbar"] = 8] = "InlineToolbar"; /** Defines RenderType as TableToolbar */ RenderType[RenderType["TableToolbar"] = 9] = "TableToolbar"; /* eslint-enable */ })(RenderType || (RenderType = {})); /** * Enumerates the types of toolbars available. */ var ToolbarType; (function (ToolbarType) { /* eslint-disable */ /** Defines ToolbarType as Expand. */ ToolbarType["Expand"] = "Expand"; /** Defines ToolbarType as MultiRow. */ ToolbarType["MultiRow"] = "MultiRow"; /** Defines ToolbarType as Scrollable. */ ToolbarType["Scrollable"] = "Scrollable"; /* eslint-enable */ })(ToolbarType || (ToolbarType = {})); /** * Enumerates the types of dialogs that can be opened or closed in the Rich Text Editor. */ var DialogType; (function (DialogType) { /* eslint-disable */ /** Defines DialogType for inserting a link. */ DialogType["InsertLink"] = "InsertLink"; /** Defines DialogType for inserting an image. */ DialogType["InsertImage"] = "InsertImage"; /** Defines DialogType for inserting audio. */ DialogType["InsertAudio"] = "InsertAudio"; /** Defines DialogType for inserting video. */ DialogType["InsertVideo"] = "InsertVideo"; /** Defines DialogType for inserting a table. */ DialogType["InsertTable"] = "InsertTable"; /* eslint-enable */ })(DialogType || (DialogType = {})); /** * Enumerates the sources for images to be inserted. */ var ImageInputSource; (function (ImageInputSource) { /** Defines ImageInputSource as Uploaded. */ ImageInputSource["Uploaded"] = "Uploaded"; /** Defines ImageInputSource as Dropped. */ ImageInputSource["Dropped"] = "Dropped"; /** Defines ImageInputSource as Pasted. */ ImageInputSource["Pasted"] = "Pasted"; })(ImageInputSource || (ImageInputSource = {})); /* eslint-disable */ /** * Export items model */ let templateItems = ['alignments', 'formats', 'fontname', 'fontsize', 'fontcolor', 'backgroundcolor', 'align', 'display', 'audiolayoutoption', 'videolayoutoption', 'videoalign', 'tablerows', 'tablecolumns', 'tablecell', 'tablecellhorizontalalign', 'tablecellverticalalign', 'styles', 'numberformatlist', 'bulletformatlist']; let tools = { 'alignments': { 'id': 'Alignments', 'icon': 'e-alignments', 'tooltip': 'Alignments', 'command': 'Alignments', 'subCommand': 'Alignments' }, 'justifyleft': { 'id': 'JustifyLeft', 'icon': 'e-justify-left', 'tooltip': 'JustifyLeft', 'command': 'Alignments', 'subCommand': 'JustifyLeft' }, 'justifycenter': { 'id': 'JustifyCenter', 'icon': 'e-justify-center', 'tooltip': 'JustifyCenter', 'command': 'Alignments', 'subCommand': 'JustifyCenter' }, 'justifyright': { 'id': 'JustifyRight', 'icon': 'e-justify-right', 'tooltip': 'JustifyRight', 'command': 'Alignments', 'subCommand': 'JustifyRight' }, 'justifyfull': { 'id': 'JustifyFull', 'icon': 'e-justify-full', 'tooltip': 'JustifyFull', 'command': 'Alignments', 'subCommand': 'JustifyFull' }, 'fontname': { 'id': 'FontName', 'icon': 'e-font-name', 'tooltip': 'Font Name', 'command': 'Font', 'subCommand': 'FontName' }, 'fontsize': { 'id': 'FontSize', 'icon': 'e-font-size', 'tooltip': 'Font Size', 'command': 'Font', 'subCommand': 'FontSize' }, 'fontcolor': { 'id': 'FontColor', 'icon': 'e-rte-font-color', 'tooltip': 'Font Color', 'command': 'Font', 'subCommand': 'FontColor', 'value': '#ff0000ff' }, 'backgroundcolor': { 'id': 'BackgroundColor', 'icon': 'e-background-color', 'tooltip': 'Background Color', 'command': 'Font', 'subCommand': 'BackgroundColor', 'value': '#ffff00ff' }, 'importword': { 'id': 'ImportWord', 'icon': 'e-rte-import-doc', 'tooltip': 'Import from Word', 'command': 'Import', 'subCommand': 'ImportWord' }, 'exportword': { 'id': 'ExportWord', 'icon': 'e-rte-export-doc', 'tooltip': 'Export to Word', 'command': 'Export', 'subCommand': 'ExportWord' }, 'exportpdf': { 'id': 'ExportPdf', 'icon': 'e-rte-export-pdf', 'tooltip': 'Export to PDF', 'command': 'Export', 'subCommand': 'ExportPdf' }, 'bold': { 'id': 'Bold', 'icon': 'e-bold', 'tooltip': 'Bold', 'command': 'Style', 'subCommand': 'Bold' }, 'italic': { 'id': 'Italic', 'icon': 'e-italic', 'tooltip': 'Italic', 'command': 'Style', 'subCommand': 'Italic' }, 'underline': { 'id': 'Underline', 'icon': 'e-underline', 'tooltip': 'Underline', 'command': 'Style', 'subCommand': 'Underline' }, 'strikethrough': { 'id': 'StrikeThrough', 'icon': 'e-strike-through', 'tooltip': 'StrikeThrough', 'command': 'Style', 'subCommand': 'StrikeThrough' }, 'clearformat': { 'id': 'ClearFormat', 'icon': 'e-clear-format', 'tooltip': 'Clear Format', 'command': 'Clear', 'subCommand': 'ClearFormat' }, 'clearall': { 'id': 'ClearAll', 'icon': 'e-clear-all', 'tooltip': 'Clear All', 'command': 'Clear', 'subCommand': 'ClearAll' }, 'cut': { 'id': 'Cut', 'icon': 'e-cut', 'tooltip': 'Cut', 'command': 'ClipBoard', 'subCommand': 'Cut' }, 'copy': { 'id': 'Copy', 'icon': 'e-copy', 'tooltip': 'Copy', 'command': 'ClipBoard', 'subCommand': 'Copy' }, 'paste': { 'id': 'Paste', 'icon': 'e-paste', 'tooltip': 'Paste', 'command': 'ClipBoard', 'subCommand': 'Paste' }, 'unorderedlist': { 'id': 'UnorderedList', 'icon': 'e-unorder-list', 'tooltip': 'Bulleted List', 'command': 'Lists', 'subCommand': 'UL' }, 'orderedlist': { 'id': 'OrderedList', 'icon': 'e-order-list', 'tooltip': 'Numbered List', 'command': 'Lists', 'subCommand': 'OL' }, 'numberformatlist': { 'id': 'NumberFormatList', 'icon': 'e-order-list', 'tooltip': 'Number Format List', 'command': 'NumberFormatList', 'subCommand': 'NumberFormatList' }, 'bulletformatlist': { 'id': 'BulletFormatList', 'icon': 'e-unorder-list', 'tooltip': 'Bullet Format List', 'command': 'BulletFormatList', 'subCommand': 'BulletFormatList' }, 'indent': { 'id': 'Indent', 'icon': 'e-indent', 'tooltip': 'Increase Indent', 'command': 'Indents', 'subCommand': 'Indent' }, 'outdent': { 'id': 'Outdent', 'icon': 'e-outdent', 'tooltip': 'Decrease Indent', 'command': 'Indents', 'subCommand': 'Outdent' }, 'undo': { 'id': 'Undo', 'icon': 'e-undo', 'tooltip': 'Undo', 'command': 'Actions', 'subCommand': 'Undo' }, 'redo': { 'id': 'Redo', 'icon': 'e-redo', 'tooltip': 'Redo', 'command': 'Actions', 'subCommand': 'Redo' }, 'superscript': { 'id': 'SuperScript', 'icon': 'e-super-script', 'tooltip': 'Superscript', 'command': 'Effects', 'subCommand': 'SuperScript' }, 'subscript': { 'id': 'SubScript', 'icon': 'e-sub-script', 'tooltip': 'Subscript', 'command': 'Effects', 'subCommand': 'SubScript' }, 'createlink': { 'id': 'CreateLink', 'icon': 'e-create-link', 'tooltip': 'Insert Hyperlink', 'command': 'Links', 'subCommand': 'CreateLink' }, 'openlink': { 'id': 'OpenLink', 'icon': 'e-open-link', 'tooltip': 'Open Link', 'command': 'Links', 'subCommand': 'OpenLink' }, 'editlink': { 'id': 'EditLink', 'icon': 'e-edit-link', 'tooltip': 'Edit Link', 'command': 'Links', 'subCommand': 'EditLink' }, 'removelink': { 'id': 'RemoveLink', 'icon': 'e-remove-link', 'tooltip': 'Remove Link', 'command': 'Links', 'subCommand': 'RemoveLink' }, 'image': { 'id': 'Image', 'icon': 'e-image', 'tooltip': 'Insert Image', 'command': 'Images', 'subCommand': 'Image' }, 'audio': { 'id': 'Audio', 'icon': 'e-audio', 'tooltip': 'Insert Audio', 'command': 'Audios', 'subCommand': 'Audio' }, 'video': { 'id': 'Video', 'icon': 'e-video', 'tooltip': 'Insert Video', 'command': 'Videos', 'subCommand': 'Video' }, 'filemanager': { 'id': 'FileManager', 'icon': 'e-rte-file-manager', 'tooltip': 'File Manager', 'command': 'Files', 'subCommand': 'File' }, 'createtable': { 'id': 'CreateTable', 'icon': 'e-create-table', 'tooltip': 'Create Table', 'command': 'Table', 'subCommand': 'CreateTable' }, 'removetable': { 'id': 'removeTable', 'icon': 'e-remove-table', 'tooltip': 'Remove Table', 'command': 'removeTable', 'subCommand': 'removeTable' }, 'replace': { 'id': 'Replace', 'icon': 'e-replace', 'tooltip': 'Replace', 'command': 'Images', 'subCommand': 'Replace' }, 'audioreplace': { 'id': 'AudioReplace', 'icon': 'e-audio-replace', 'tooltip': 'Audio Replace', 'command': 'Audios', 'subCommand': 'AudioReplace' }, 'audioremove': { 'id': 'AudioRemove', 'icon': 'e-audio-remove', 'tooltip': 'Audio Remove', 'command': 'Audios', 'subCommand': 'AudioRemove' }, 'audiolayoutoption': { 'id': 'AudioLayoutOption', 'icon': 'e-audio-display', 'tooltip': 'Audio LayoutOption', 'command': 'Audios', 'subCommand': 'AudioLayoutOption' }, 'videoreplace': { 'id': 'VideoReplace', 'icon': 'e-video-replace', 'tooltip': 'Video Replace', 'command': 'Videos', 'subCommand': 'VideoReplace' }, 'videoalign': { 'id': 'VideoAlign', 'icon': 'e-video-align', 'tooltip': 'Video Align', 'command': 'Videos', 'subCommand': 'VideoAlign' }, 'videoremove': { 'id': 'VideoRemove', 'icon': 'e-video-remove', 'tooltip': 'Video Remove', 'command': 'Videos', 'subCommand': 'VideoRemove' }, 'videolayoutoption': { 'id': 'VideoLayoutOption', 'icon': 'e-video-display', 'tooltip': 'Video LayoutOption', 'command': 'Videos', 'subCommand': 'VideoLayoutOption' }, 'videodimension': { 'id': 'VideoDimension', 'icon': 'e-video-dimension', 'tooltip': 'Video Dimension', 'command': 'Videos', 'subCommand': 'VideoDimension' }, 'align': { 'id': 'Align', 'icon': 'e-align', 'tooltip': 'Align', 'command': 'Images', 'subCommand': 'Align' }, 'caption': { 'id': 'Caption', 'icon': 'e-caption', 'tooltip': 'Image Caption', 'command': 'Images', 'subCommand': 'Caption' }, 'remove': { 'id': 'Remove', 'icon': 'e-remove', 'tooltip': 'Remove', 'command': 'Images', 'subCommand': 'Remove' }, 'openimagelink': { 'id': 'OpenImageLink', 'icon': 'e-open-link', 'tooltip': 'Open Link', 'command': 'Images', 'subCommand': 'OpenImageLink' }, 'editimagelink': { 'id': 'EditImageLink', 'icon': 'e-edit-link', 'tooltip': 'Edit Link', 'command': 'Images', 'subCommand': 'EditImageLink' }, 'removeimagelink': { 'id': 'RemoveImageLink', 'icon': 'e-remove-link', 'tooltip': 'Remove Link', 'command': 'Images', 'subCommand': 'RemoveImageLink' }, 'insertlink': { 'id': 'InsertLink', 'icon': 'e-insert-link', 'tooltip': 'Insert Link', 'command': 'Images', 'subCommand': 'InsertLink' }, 'display': { 'id': 'Display', 'icon': 'e-display', 'tooltip': 'Display', 'command': 'Images', 'subCommand': 'Display' }, 'alttext': { 'id': 'AltText', 'icon': 'e-alt-text', 'tooltip': 'Alternative Text', 'command': 'Images', 'subCommand': 'AltText' }, 'dimension': { 'id': 'Dimension', 'icon': 'e-img-dimension', 'tooltip': 'Change Size', 'command': 'Images', 'subCommand': 'Dimension' }, 'fullscreen': { 'id': 'Maximize', 'icon': 'e-maximize', 'tooltip': 'Maximize', 'command': 'View', 'subCommand': 'Maximize' }, 'maximize': { 'id': 'Maximize', 'icon': 'e-maximize', 'tooltip': 'Maximize', 'command': 'FullScreen', 'subCommand': 'Maximize' }, 'minimize': { 'id': 'Minimize', 'icon': 'e-minimize', 'tooltip': 'Minimize', 'command': 'FullScreen', 'subCommand': 'Minimize' }, 'lowercase': { 'id': 'LowerCase', 'icon': 'e-lower-case', 'tooltip': 'Lower Case', 'command': 'Casing', 'subCommand': 'LowerCase' }, 'uppercase': { 'id': 'UpperCase', 'icon': 'e-upper-case', 'tooltip': 'Upper Case', 'command': 'Casing', 'subCommand': 'UpperCase' }, 'print': { 'id': 'Print', 'icon': 'e-print', 'tooltip': 'Print', 'command': 'Print', 'subCommand': 'Print' }, 'formats': { 'id': 'Formats', 'icon': 'e-formats', 'tooltip': 'Formats', 'command': 'Formats', 'subCommand': 'Formats' }, 'sourcecode': { 'id': 'SourceCode', 'icon': 'e-source-code', 'tooltip': 'Code View (Ctrl+Shift+H)', 'command': 'SourceCode', 'subCommand': 'SourceCode' }, 'preview': { 'id': 'Preview', 'icon': 'e-preview', 'tooltip': 'Preview (Ctrl+Shift+H)', 'command': 'Preview', 'subCommand': 'Preview' }, 'viewside': { 'id': 'ViewSide', 'icon': 'e-view-side', 'tooltip': 'ViewSide', 'command': 'ViewSide', 'subCommand': 'ViewSide' }, 'insertcode': { 'id': 'InsertCode', 'icon': 'e-preformat-code', 'tooltip': 'Insert Code', 'command': 'Formats', 'subCommand': 'Pre' }, 'blockquote': { 'id': 'Blockquote', 'icon': 'e-blockquote', 'tooltip': 'Blockquote', 'command': 'Formats', 'subCommand': 'blockquote' }, 'tableheader': { 'id': 'TableHeader', 'icon': 'e-table-header', 'tooltip': 'Table Header', 'command': 'Table', 'subCommand': 'TableHeader' }, 'tableremove': { 'id': 'TableRemove', 'icon': 'e-table-remove', 'tooltip': 'Table Remove', 'command': 'Table', 'subCommand': 'TableRemove' }, 'tablerows': { 'id': 'TableRows', 'icon': 'e-table-rows', 'tooltip': 'Table Rows', 'command': 'Table', 'subCommand': 'TableRows' }, 'tablecolumns': { 'id': 'TableColumns', 'icon': 'e-table-columns', 'tooltip': 'Table Columns', 'command': 'Table', 'subCommand': 'TableColumns' }, 'tablecell': { 'id': 'TableCell', 'icon': 'e-table-cell', 'tooltip': 'Table Cell', 'command': 'Table', 'subCommand': 'TableCell' }, 'tablecellbackground': { 'id': 'TableCellBackground', 'icon': 'e-table-cell-background', 'tooltip': 'Table Cell Background', 'command': 'Table', 'subCommand': 'TableCellBackground' }, 'tablecellhorizontalalign': { 'id': 'TableCellHorizontalAlign', 'icon': 'e-table-cell-horizontalAlign', 'tooltip': 'Table Cell HorizontalAlign', 'command': 'Table', 'subCommand': 'TableCellHorizontalAlign' }, 'tablecellverticalalign': { 'id': 'TableCellVerticalAlign', 'icon': 'e-table-cell-verticalAlign', 'tooltip': 'Table Cell VerticalAlign', 'command': 'Table', 'subCommand': 'TableCellVerticalAlign' }, 'tableeditproperties': { 'id': 'TableEditProperties', 'icon': 'e-table-edit-properties', 'tooltip': 'Table Edit Properties', 'command': 'Table', 'subCommand': 'TableEditProperties' }, 'styles': { 'id': 'Styles', 'icon': 'e-table-styles', 'tooltip': 'Styles', 'command': 'Table', 'subCommand': 'Styles' }, 'formatpainter': { 'id': 'FormatPainter', 'icon': 'e-rte-format-painter', 'tooltip': 'Format Painter', 'command': 'FormatPainter', 'subCommand': 'FormatPainter' }, 'emojipicker': { 'id': 'EmojiPicker', 'icon': 'e-emoji', 'tooltip': 'Emoji Icon', 'command': 'EmojiPicker', 'subCommand': 'EmojiPicker' }, 'inlinecode': { 'id': 'inlineCode', 'icon': 'e-inline-code', 'tooltip': 'inlineCode', 'command': 'Style', 'subCommand': 'InlineCode' } }; let alignmentLocale = [ { locale: 'alignmentsDropDownLeft', value: 'JustifyLeft' }, { locale: 'alignmentsDropDownCenter', value: 'JustifyCenter' }, { locale: 'alignmentsDropDownRight', value: 'JustifyRight' }, { locale: 'alignmentsDropDownJustify', value: 'JustifyFull' } ]; let alignmentItems = [ { iconCss: 'e-icons e-justify-left', text: 'Align Left', command: 'Alignments', subCommand: 'JustifyLeft' }, { iconCss: 'e-icons e-justify-center', text: 'Align Center', command: 'Alignments', subCommand: 'JustifyCenter' }, { iconCss: 'e-icons e-justify-right', text: 'Align Right', command: 'Alignments', subCommand: 'JustifyRight' }, { iconCss: 'e-icons e-justify-full', text: 'Align Justify', command: 'Alignments', subCommand: 'JustifyFull' } ]; let imageAlignItems = [ { iconCss: 'e-icons e-justify-left', command: 'Images', subCommand: 'JustifyLeft' }, { iconCss: 'e-icons e-justify-center', command: 'Images', subCommand: 'JustifyCenter' }, { iconCss: 'e-icons e-justify-right', command: 'Images', subCommand: 'JustifyRight' }, ]; let videoAlignItems = [ { iconCss: 'e-icons e-justify-left', command: 'Videos', subCommand: 'JustifyLeft' }, { iconCss: 'e-icons e-justify-center', command: 'Videos', subCommand: 'JustifyCenter' }, { iconCss: 'e-icons e-justify-right', command: 'Videos', subCommand: 'JustifyRight' }, ]; let displayLocale = [ { locale: 'imageDisplayDropDownInline', value: 'Inline' }, { locale: 'imageDisplayDropDownBreak', value: 'Break' } ]; let audioLayoutOptionLocale = [ { locale: 'audioLayoutOptionDropDownInline', value: 'Inline' }, { locale: 'audioLayoutOptionDropDownBreak', value: 'Break' } ]; let videoLayoutOptionLocale = [ { locale: 'videoLayoutOptionDropDownInline', value: 'Inline' }, { locale: 'videoLayoutOptionDropDownBreak', value: 'Break' } ]; let imageDisplayItems = [ { text: 'Inline', cssClass: 'e-inline', command: 'Images', subCommand: 'Inline' }, { text: 'Break', cssClass: 'e-break', command: 'Images', subCommand: 'Break' }, ]; let audioLayoutOptionItems = [ { text: 'Inline', cssClass: 'e-audio-inline', command: 'Audios', subCommand: 'Inline' }, { text: 'Break', cssClass: 'e-audio-break', command: 'Audios', subCommand: 'Break' }, ]; let videoLayoutOptionItems = [ { text: 'Inline', cssClass: 'e-video-inline', command: 'Videos', subCommand: 'Inline' }, { text: 'Break', cssClass: 'e-video-break', command: 'Videos', subCommand: 'Break' }, ]; let tableCellItems = [ { iconCss: 'e-icons e-cell-merge', text: 'Merge cells', command: 'Table', subCommand: 'Merge' }, { iconCss: 'e-icons e-cell-horizontal-split', text: 'Horizontal split', command: 'Table', subCommand: 'HorizontalSplit' }, { iconCss: 'e-icons e-cell-vertical-split', text: 'Vertical split', command: 'Table', subCommand: 'VerticalSplit' }, ]; let tableRowLocale = [ { locale: 'tableInsertRowDropDownBefore', value: 'InsertRowBefore' }, { locale: 'tableInsertRowDropDownAfter', value: 'InsertRowAfter' }, { locale: 'tableInsertRowDropDownDelete', value: 'DeleteRow' } ]; let tableRowsItems = [ { iconCss: 'e-icons e-insert-row-before', text: 'Insert row before', command: 'Table', subCommand: 'InsertRowBefore' }, { iconCss: 'e-icons e-insert-row-after', text: 'Insert row after', command: 'Table', subCommand: 'InsertRowAfter' }, { iconCss: 'e-icons e-delete-row', text: 'Delete row', command: 'Table', subCommand: 'DeleteRow' }, ]; let tableColumnLocale = [ { locale: 'tableInsertColumnDropDownLeft', value: 'InsertColumnLeft' }, { locale: 'tableInsertColumnDropDownRight', val