@syncfusion/ej2-richtexteditor
Advanced tools
Comparing version 27.2.2 to 27.2.3
/*! | ||
* filename: index.d.ts | ||
* version : 27.2.2 | ||
* version : 27.2.3 | ||
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-richtexteditor@*", | ||
"_id": "@syncfusion/ej2-richtexteditor@27.1.58", | ||
"_id": "@syncfusion/ej2-richtexteditor@27.2.2", | ||
"_inBundle": false, | ||
"_integrity": "sha512-Mh3t2LCFc+U9cNHK+RW1CSAMAdEXR1MtXB6bm0CzjWQUvz5Rw96pX4GLVIiNEnodxod34bycX8mXnV1Blrr1Hg==", | ||
"_integrity": "sha512-XhxuV4pqamHtam7yooDj+UAn8UorGonjtxLr2pDoVeiz3r/YodlN5r+UV8Ta6jk4p0hvmwyTa/wJGliZjPBuzQ==", | ||
"_location": "/@syncfusion/ej2-richtexteditor", | ||
@@ -28,4 +28,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-27.1.58.tgz", | ||
"_shasum": "a8af7e987df55ace85a6b6f36e76e57aebab28fd", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-27.2.2.tgz", | ||
"_shasum": "0b7cb82941dbccb875cbea81919374a9245339a9", | ||
"_spec": "@syncfusion/ej2-richtexteditor@*", | ||
@@ -43,6 +43,6 @@ "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included", | ||
"@syncfusion/ej2-buttons": "~27.2.2", | ||
"@syncfusion/ej2-dropdowns": "~27.2.2", | ||
"@syncfusion/ej2-filemanager": "~27.2.2", | ||
"@syncfusion/ej2-dropdowns": "~27.2.3", | ||
"@syncfusion/ej2-filemanager": "~27.2.3", | ||
"@syncfusion/ej2-inputs": "~27.2.2", | ||
"@syncfusion/ej2-navigations": "~27.2.2", | ||
"@syncfusion/ej2-navigations": "~27.2.3", | ||
"@syncfusion/ej2-popups": "~27.2.2", | ||
@@ -85,4 +85,4 @@ "@syncfusion/ej2-splitbuttons": "~27.2.2" | ||
"typings": "index.d.ts", | ||
"version": "27.2.2", | ||
"version": "27.2.3", | ||
"sideEffects": false | ||
} |
@@ -53,3 +53,3 @@ import { NodeSelection } from './../../selection/index'; | ||
var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG' && !(fragment.querySelectorAll('img').length > 0) | ||
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent !== ' ' && fragment.textContent.charCodeAt(0) !== 160) ? true : false; | ||
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent.charCodeAt(0) !== 32 && fragment.textContent.charCodeAt(0) !== 160) ? true : false; | ||
if (!isEmpty) { | ||
@@ -75,3 +75,3 @@ if (node) { | ||
var isEmpty = (fragment.childNodes.length === 1 && fragment.childNodes[0].nodeName !== 'IMG' | ||
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent !== ' ' && fragment.textContent.charCodeAt(0) !== 160) ? true : false; | ||
&& this.isRteElm(fragment) && fragment.textContent.trim() === '' && fragment.textContent.charCodeAt(0) !== 32 && fragment.textContent.charCodeAt(0) !== 160) ? true : false; | ||
if (!isEmpty) { | ||
@@ -78,0 +78,0 @@ if (node) { |
@@ -175,2 +175,4 @@ import { isNullOrUndefined as isNOU, detach, Browser } from '@syncfusion/ej2-base'; | ||
var isFocusedFirst = false; | ||
var parentElement = _this.range.startContainer.parentElement; | ||
var isPreWrapApplied = parentElement ? _this.parent.contentModule.getDocument().defaultView.getComputedStyle(_this.range.startContainer.parentElement, null).getPropertyValue('white-space') === 'pre-wrap' : false; | ||
if (_this.range.startOffset !== 0 && _this.range.endOffset !== 0 && | ||
@@ -181,4 +183,10 @@ _this.range.startContainer === _this.range.endContainer && !(!isNOU(nearBlockNode.childNodes[0]) | ||
var splitFirstText = startNodeText.substring(0, _this.range.startOffset); | ||
// eslint-disable-next-line max-len | ||
if (splitFirstText.charCodeAt(_this.range.startOffset - 1) !== 160 && splitFirstText.trim().length === 0) { | ||
var lastCharBeforeCursor = splitFirstText.charCodeAt(_this.range.startOffset - 1); | ||
var isSplitTextEmpty = splitFirstText.trim().length === 0; | ||
var hasContentAfterCursor = startNodeText.slice(_this.range.startOffset).trim().length !== 0; | ||
var isCursorAtStartNonPreWrap = lastCharBeforeCursor !== 160 | ||
&& isSplitTextEmpty && !isPreWrapApplied; | ||
var isCursorAtStartPreWrapWithContent = lastCharBeforeCursor === 32 | ||
&& isPreWrapApplied && isSplitTextEmpty && hasContentAfterCursor; | ||
if (isCursorAtStartNonPreWrap || isCursorAtStartPreWrapWithContent) { | ||
isFocusedFirst = true; | ||
@@ -185,0 +193,0 @@ } |
@@ -424,3 +424,6 @@ import * as events from '../base/constant'; | ||
var unOrderedList = this.isUnOrderedList(editorValue); | ||
var hasSplitedText = this.hasMultipleTextNode(currentRange_1); | ||
var hasSplitedText = false; | ||
if (orderedList_1 || unOrderedList) { | ||
hasSplitedText = this.hasMultipleTextNode(currentRange_1); | ||
} | ||
if (!hasSplitedText && (orderedList_1 && !unOrderedList || unOrderedList && !orderedList_1)) { | ||
@@ -495,2 +498,7 @@ var eventArgs_1 = { | ||
var parentNode = range.startContainer.parentNode; | ||
if (range.startContainer.previousElementSibling && | ||
range.startContainer.previousElementSibling.classList.contains('e-mention-chip') | ||
&& !range.startContainer.previousElementSibling.isContentEditable) { | ||
return true; | ||
} | ||
if (this.parent.enterKey === 'BR' || closest(parentNode, 'table')) { | ||
@@ -497,0 +505,0 @@ return false; |
@@ -172,2 +172,9 @@ import { addClass, Browser, EventHandler, detach, removeClass, select, selectAll, KeyboardEvents } from '@syncfusion/ej2-base'; | ||
}); | ||
if (this.parent.element.classList.contains('e-rte-full-screen')) { | ||
this.updateItem({ | ||
targetItem: 'Maximize', | ||
updateItem: 'Minimize', | ||
baseToolbar: this.parent.getBaseToolbarObject() | ||
}); | ||
} | ||
if (!this.parent.inlineMode.enable) { | ||
@@ -174,0 +181,0 @@ if (this.parent.toolbarSettings.enableFloating) { |
@@ -363,7 +363,7 @@ /* eslint-disable */ | ||
{ locale: 'numberFormatListNumber', value: 'decimal' }, | ||
{ locale: 'numberFormatListLowerAlpha', value: 'lower-alpha' }, | ||
{ locale: 'numberFormatListUpperAlpha', value: 'upper-alpha' }, | ||
{ locale: 'numberFormatListLowerRoman', value: 'lower-roman' }, | ||
{ locale: 'numberFormatListUpperRoman', value: 'upper-roman' }, | ||
{ locale: 'numberFormatListLowerGreek', value: 'lower-greek' } | ||
{ locale: 'numberFormatListLowerAlpha', value: 'lowerAlpha' }, | ||
{ locale: 'numberFormatListUpperAlpha', value: 'upperAlpha' }, | ||
{ locale: 'numberFormatListLowerRoman', value: 'lowerRoman' }, | ||
{ locale: 'numberFormatListUpperRoman', value: 'upperRoman' }, | ||
{ locale: 'numberFormatListLowerGreek', value: 'lowerGreek' } | ||
]; | ||
@@ -370,0 +370,0 @@ export var bulletFormatListLocale = [ |
Sorry, the diff of this file is too big to display
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
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
35723707
349576