@syncfusion/ej2-richtexteditor
Advanced tools
Comparing version 16.4.54 to 16.4.55
@@ -9,2 +9,12 @@ # Changelog | ||
- Insert image dialog is not rendering properly while setting the `imageUploadMessage` text as long in localization, that issue has been fixed. | ||
- Localization is not applied to static `DropDownButton` items, that issue has been fixed. | ||
## 16.4.54 (2019-02-19) | ||
### RichTextEditor | ||
#### Bug Fixes | ||
- HTML 5 form reset behaviour has been corrected. | ||
@@ -78,2 +88,4 @@ | ||
- The value property and getHtml method will be updated within an interval to `saveInterval` property. | ||
## 16.4.40-beta (2018-12-10) | ||
@@ -80,0 +92,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.4.54 | ||
* version : 16.4.55 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-richtexteditor", | ||
"version": "16.4.54", | ||
"version": "16.4.55", | ||
"description": "Essential JS 2 RichTextEditor component", | ||
@@ -5,0 +5,0 @@ "author": "Syncfusion Inc.", |
@@ -23,2 +23,3 @@ import { addClass, Browser, EventHandler, detach, removeClass, select, selectAll, KeyboardEvents } from '@syncfusion/ej2-base'; | ||
this.renderFactory = this.locator.getService('rendererFactory'); | ||
model.updateDropDownLocale(this.parent); | ||
this.renderFactory.addRenderer(RenderType.Toolbar, new ToolbarRenderer(this.parent)); | ||
@@ -25,0 +26,0 @@ this.toolbarRenderer = this.renderFactory.getRenderer(RenderType.Toolbar); |
@@ -80,3 +80,2 @@ // tslint:disable | ||
'textPlaceholder': 'Enter Text', | ||
'tblhead': '1X1', | ||
'inserttablebtn': 'Insert Table', | ||
@@ -108,3 +107,22 @@ 'tabledialogHeader': 'Insert Table', | ||
'TableHeadingText': 'Heading', | ||
'TableColText': 'Col' | ||
'TableColText': 'Col', | ||
'imageInsertLinkHeader': 'Insert Link', | ||
'editImageHeader': 'Edit Image', | ||
"alignmentsDropDownLeft": 'Align Left', | ||
"alignmentsDropDownCenter": 'Align Center', | ||
"alignmentsDropDownRight": 'Align Right', | ||
"alignmentsDropDownJustify": 'Align Justify', | ||
"imageDisplayDropDownInline": 'Inline', | ||
"imageDisplayDropDownBreak": 'Break', | ||
"tableInsertRowDropDownBefore": 'Insert row before', | ||
"tableInsertRowDropDownAfter": 'Insert row after', | ||
"tableInsertRowDropDownDelete": 'Delete row', | ||
"tableInsertColumnDropDownLeft": 'Insert column left', | ||
"tableInsertColumnDropDownRight": 'Insert column right', | ||
"tableInsertColumnDropDownDelete": 'Delete column', | ||
"tableVerticalAlignDropDownTop": 'Align Top', | ||
"tableVerticalAlignDropDownMiddle": 'Align Middle', | ||
"tableVerticalAlignDropDownBottom": 'Align Bottom', | ||
"tableStylesDropDownDashedBorder": 'Dashed Borders', | ||
"tableStylesDropDownAlternateRows": 'Alternate Rows' | ||
}; | ||
@@ -111,0 +129,0 @@ export var toolsLocale = { |
/** | ||
* Export items model | ||
*/ | ||
import { IToolsItems, IDropDownItemModel } from '../base/interface'; | ||
import { IToolsItems, IDropDownItemModel, IRichTextEditor } from '../base/interface'; | ||
export declare let templateItems: string[]; | ||
@@ -16,1 +16,2 @@ export declare let tools: { | ||
export declare let TableStyleItems: IDropDownItemModel[]; | ||
export declare function updateDropDownLocale(self: IRichTextEditor): void; |
@@ -458,2 +458,8 @@ // tslint:disable | ||
}; | ||
var alignmentLocale = [ | ||
{ locale: 'alignmentsDropDownLeft', value: 'JustifyLeft' }, | ||
{ locale: 'alignmentsDropDownCenter', value: 'JustifyCenter' }, | ||
{ locale: 'alignmentsDropDownRight', value: 'JustifyRight' }, | ||
{ locale: 'alignmentsDropDownJustify', value: 'JustifyFull' } | ||
]; | ||
export var alignmentItems = [ | ||
@@ -470,2 +476,6 @@ { iconCss: 'e-icons e-justify-left', text: 'Align Left', command: 'Alignments', subCommand: 'JustifyLeft' }, | ||
]; | ||
var displayLocale = [ | ||
{ locale: 'imageDisplayDropDownInline', value: 'Inline' }, | ||
{ locale: 'imageDisplayDropDownBreak', value: 'Break' } | ||
]; | ||
export var imageDisplayItems = [ | ||
@@ -475,2 +485,7 @@ { text: 'Inline', cssClass: 'e-inline', command: 'Images', subCommand: 'Inline' }, | ||
]; | ||
var tableRowLocale = [ | ||
{ locale: 'tableInsertRowDropDownBefore', value: 'InsertRowBefore' }, | ||
{ locale: 'tableInsertRowDropDownAfter', value: 'InsertRowAfter' }, | ||
{ locale: 'tableInsertRowDropDownDelete', value: 'DeleteRow' } | ||
]; | ||
export var tableRowsItems = [ | ||
@@ -481,2 +496,7 @@ { iconCss: 'e-icons e-insert-row-before', text: 'Insert row before', command: 'Table', subCommand: 'InsertRowBefore' }, | ||
]; | ||
var tableColumnLocale = [ | ||
{ locale: 'tableInsertColumnDropDownLeft', value: 'InsertColumnLeft' }, | ||
{ locale: 'tableInsertColumnDropDownRight', value: 'InsertColumnRight' }, | ||
{ locale: 'tableInsertColumnDropDownDelete', value: 'DeleteColumn' } | ||
]; | ||
export var tableColumnsItems = [ | ||
@@ -487,2 +507,7 @@ { iconCss: 'e-icons e-insert-column-left', text: 'Insert column left', command: 'Table', subCommand: 'InsertColumnLeft' }, | ||
]; | ||
var tableVerticalLocale = [ | ||
{ locale: 'tableVerticalAlignDropDownTop', value: 'AlignTop' }, | ||
{ locale: 'tableVerticalAlignDropDownMiddle', value: 'AlignMiddle' }, | ||
{ locale: 'tableVerticalAlignDropDownBottom', value: 'AlignBottom' } | ||
]; | ||
export var TableCellVerticalAlignItems = [ | ||
@@ -493,2 +518,6 @@ { iconCss: 'e-icons e-align-top', text: 'Align Top', command: 'Table', subCommand: 'AlignTop' }, | ||
]; | ||
var tableStyleLocale = [ | ||
{ locale: 'tableStylesDropDownDashedBorder', value: 'Dashed' }, | ||
{ locale: 'tableStylesDropDownAlternateRows', value: 'Alternate' } | ||
]; | ||
export var TableStyleItems = [ | ||
@@ -498,1 +527,29 @@ { text: 'Dashed Borders', cssClass: 'e-dashed-borders', command: 'Table', subCommand: 'Dashed' }, | ||
]; | ||
function getLocale(self, localeItems, item) { | ||
for (var i = 0; localeItems.length > i; i++) { | ||
if (localeItems[i].value === item.subCommand) { | ||
return self.localeObj.getConstant(localeItems[i].locale); | ||
} | ||
} | ||
return item.text; | ||
} | ||
export function updateDropDownLocale(self) { | ||
alignmentItems.forEach(function (item, i) { | ||
alignmentItems[i].text = getLocale(self, alignmentLocale, alignmentItems[i]); | ||
}); | ||
imageDisplayItems.forEach(function (item, i) { | ||
imageDisplayItems[i].text = getLocale(self, displayLocale, imageDisplayItems[i]); | ||
}); | ||
tableRowsItems.forEach(function (item, i) { | ||
tableRowsItems[i].text = getLocale(self, tableRowLocale, tableRowsItems[i]); | ||
}); | ||
tableColumnsItems.forEach(function (item, i) { | ||
tableColumnsItems[i].text = getLocale(self, tableColumnLocale, tableColumnsItems[i]); | ||
}); | ||
TableCellVerticalAlignItems.forEach(function (item, i) { | ||
TableCellVerticalAlignItems[i].text = getLocale(self, tableVerticalLocale, TableCellVerticalAlignItems[i]); | ||
}); | ||
TableStyleItems.forEach(function (item, i) { | ||
TableStyleItems[i].text = getLocale(self, tableStyleLocale, TableStyleItems[i]); | ||
}); | ||
} |
@@ -337,3 +337,4 @@ import { EventHandler, detach, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
} | ||
this.parent.formatter.process(this.parent, e.args, e.args, { selectNode: e.selectNode, selectParent: e.selectParent, selection: e.selection, | ||
this.parent.formatter.process(this.parent, e.args, e.args, { | ||
selectNode: e.selectNode, selectParent: e.selectParent, selection: e.selection, | ||
subCommand: e.args.item.subCommand | ||
@@ -360,3 +361,3 @@ }); | ||
title: selectParentEle.title, target: selectParentEle.target, | ||
header: 'Edit Link', btnText: linkUpdate | ||
header: this.i10n.getConstant('editLink'), btnText: linkUpdate | ||
}; | ||
@@ -363,0 +364,0 @@ this.linkDialog(e, inputDetails); |
@@ -713,3 +713,3 @@ import { detach, closest, Browser } from '@syncfusion/ej2-base'; | ||
this.hideTableQuickToolbar(); | ||
var header = this.l10n.getConstant('tblhead'); | ||
var header = '1X1'; | ||
var insertbtn = this.l10n.getConstant('inserttablebtn'); | ||
@@ -716,0 +716,0 @@ this.dlgDiv = this.parent.createElement('div', { className: 'e-rte-table-popup', id: this.rteID + '_table' }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9517064
81982