Socket
Socket
Sign inDemoInstall

roosterjs-editor-api

Package Overview
Dependencies
Maintainers
4
Versions
317
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roosterjs-editor-api - npm Package Compare versions

Comparing version 8.56.0 to 8.57.0

3

lib-amd/format/changeCapitalization.d.ts

@@ -1,2 +0,3 @@

import { Capitalization, IEditor } from 'roosterjs-editor-types';
import { Capitalization } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleCapitalization } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,3 @@

import { FontSizeChange, IEditor } from 'roosterjs-editor-types';
import { FontSizeChange } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleFontSizeChange } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @deprecated Use clearFormat instead and pass the ClearFormatMode.Block as parameter

@@ -1,2 +0,3 @@

import { ClearFormatMode, IEditor } from 'roosterjs-editor-types';
import { ClearFormatMode } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleClearFormatMode } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert a hyperlink at cursor.

@@ -1,2 +0,2 @@

import { ElementBasedFormatState, FormatState, IEditor, PluginEvent } from 'roosterjs-editor-types';
import type { ElementBasedFormatState, FormatState, IEditor, PluginEvent } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Get element based Format State at cursor

@@ -1,2 +0,3 @@

import { ContentPosition, Entity, IEditor, NodePosition } from 'roosterjs-editor-types';
import type { Entity, IEditor, NodePosition } from 'roosterjs-editor-types';
import { ContentPosition } from 'roosterjs-editor-types';
import type { CompatibleContentPosition } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -91,6 +91,5 @@ define(["require", "exports", "../utils/commitListChains", "roosterjs-editor-dom"], function (require, exports, commitListChains_1, roosterjs_editor_dom_1) {

}
else if (isReadonly &&
editor.isFeatureEnabled("InlineEntityReadOnlyDelimiters" /* InlineEntityReadOnlyDelimiters */)) {
else if (isReadonly) {
(0, roosterjs_editor_dom_1.addDelimiters)(entity.wrapper);
if (entity.wrapper.nextElementSibling) {
if (entity.wrapper.nextElementSibling && editor.hasFocus()) {
editor.select(new roosterjs_editor_dom_1.Position(entity.wrapper.nextElementSibling, -3 /* After */));

@@ -97,0 +96,0 @@ }

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert an image to editor at current selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Remove link at selection. If no links at selection, do nothing.

@@ -1,2 +0,2 @@

import { IEditor, IPositionContentSearcher } from 'roosterjs-editor-types';
import type { IEditor, IPositionContentSearcher } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Replace text before current selection with a node, current selection will be kept if possible

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Rotate an element visually

@@ -1,2 +0,3 @@

import { Alignment, IEditor } from 'roosterjs-editor-types';
import { Alignment } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleAlignment } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set background color at current selection

@@ -1,2 +0,3 @@

import { Direction, IEditor } from 'roosterjs-editor-types';
import { Direction } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleDirection } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set font name at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set font size at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set heading level at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set image alt text for all selected images at selection. If no images is contained

@@ -1,2 +0,3 @@

import { IEditor, Indentation } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import { Indentation } from 'roosterjs-editor-types';
import type { CompatibleIndentation } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Resets Ordered List Numbering back to the value of the parameter startNumber

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set text color at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle blockquote at selection, if selection already contains any blockquote elements,

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle bold at selection

@@ -1,2 +0,2 @@

import { BulletListType, IEditor } from 'roosterjs-editor-types';
import type { BulletListType, IEditor } from 'roosterjs-editor-types';
import type { CompatibleBulletListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle code block at selection, if selection already contains any code blocked elements,

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle italic at selection

@@ -1,2 +0,2 @@

import { IEditor, NumberingListType } from 'roosterjs-editor-types';
import type { IEditor, NumberingListType } from 'roosterjs-editor-types';
import type { CompatibleNumberingListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle strikethrough at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle subscript at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle superscript at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle underline at selection

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set background color of cells.

@@ -1,2 +0,3 @@

import { IEditor, TableOperation } from 'roosterjs-editor-types';
import { TableOperation } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleTableOperation } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, TableFormat } from 'roosterjs-editor-types';
import type { IEditor, TableFormat } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Format table

@@ -1,2 +0,2 @@

import { IEditor, TableFormat } from 'roosterjs-editor-types';
import type { IEditor, TableFormat } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert table into editor at current selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { IEditor, NodePosition, Region } from 'roosterjs-editor-types';
import { VListChain } from 'roosterjs-editor-dom';
import type { IEditor, NodePosition, Region } from 'roosterjs-editor-types';
/**

@@ -4,0 +4,0 @@ * Split selection into regions, and perform a block-wise formatting action for each region.

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { IEditor } from 'roosterjs-editor-types';
import { VListChain } from 'roosterjs-editor-dom';
import type { IEditor } from 'roosterjs-editor-types';
import type { VListChain } from 'roosterjs-editor-dom';
/**

@@ -4,0 +4,0 @@ * Commit changes of all list changes when experiment features are allowed

@@ -1,2 +0,2 @@

import { DocumentCommand, IEditor } from 'roosterjs-editor-types';
import type { DocumentCommand, IEditor } from 'roosterjs-editor-types';
import type { CompatibleDocumentCommand } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, NodePosition } from 'roosterjs-editor-types';
import type { IEditor, NodePosition } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { BulletListType, IEditor, ListType, NumberingListType } from 'roosterjs-editor-types';
import type { BulletListType, IEditor, ListType, NumberingListType } from 'roosterjs-editor-types';
import type { CompatibleBulletListType, CompatibleListType, CompatibleNumberingListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,3 @@

import { Capitalization, IEditor } from 'roosterjs-editor-types';
import { Capitalization } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleCapitalization } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,3 @@

import { FontSizeChange, IEditor } from 'roosterjs-editor-types';
import { FontSizeChange } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleFontSizeChange } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @deprecated Use clearFormat instead and pass the ClearFormatMode.Block as parameter

@@ -1,2 +0,3 @@

import { ClearFormatMode, IEditor } from 'roosterjs-editor-types';
import { ClearFormatMode } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleClearFormatMode } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert a hyperlink at cursor.

@@ -1,2 +0,2 @@

import { ElementBasedFormatState, FormatState, IEditor, PluginEvent } from 'roosterjs-editor-types';
import type { ElementBasedFormatState, FormatState, IEditor, PluginEvent } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Get element based Format State at cursor

@@ -1,2 +0,3 @@

import { ContentPosition, Entity, IEditor, NodePosition } from 'roosterjs-editor-types';
import type { Entity, IEditor, NodePosition } from 'roosterjs-editor-types';
import { ContentPosition } from 'roosterjs-editor-types';
import type { CompatibleContentPosition } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -90,6 +90,5 @@ import commitListChains from '../utils/commitListChains';

}
else if (isReadonly &&
editor.isFeatureEnabled("InlineEntityReadOnlyDelimiters" /* InlineEntityReadOnlyDelimiters */)) {
else if (isReadonly) {
addDelimiters(entity.wrapper);
if (entity.wrapper.nextElementSibling) {
if (entity.wrapper.nextElementSibling && editor.hasFocus()) {
editor.select(new Position(entity.wrapper.nextElementSibling, -3 /* After */));

@@ -96,0 +95,0 @@ }

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert an image to editor at current selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Remove link at selection. If no links at selection, do nothing.

@@ -1,2 +0,2 @@

import { IEditor, IPositionContentSearcher } from 'roosterjs-editor-types';
import type { IEditor, IPositionContentSearcher } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Replace text before current selection with a node, current selection will be kept if possible

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Rotate an element visually

@@ -1,2 +0,3 @@

import { Alignment, IEditor } from 'roosterjs-editor-types';
import { Alignment } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleAlignment } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set background color at current selection

@@ -1,2 +0,3 @@

import { Direction, IEditor } from 'roosterjs-editor-types';
import { Direction } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleDirection } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set font name at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set font size at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set heading level at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set image alt text for all selected images at selection. If no images is contained

@@ -1,2 +0,3 @@

import { IEditor, Indentation } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import { Indentation } from 'roosterjs-editor-types';
import type { CompatibleIndentation } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Resets Ordered List Numbering back to the value of the parameter startNumber

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set text color at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle blockquote at selection, if selection already contains any blockquote elements,

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle bold at selection

@@ -1,2 +0,2 @@

import { BulletListType, IEditor } from 'roosterjs-editor-types';
import type { BulletListType, IEditor } from 'roosterjs-editor-types';
import type { CompatibleBulletListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle code block at selection, if selection already contains any code blocked elements,

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle italic at selection

@@ -1,2 +0,2 @@

import { IEditor, NumberingListType } from 'roosterjs-editor-types';
import type { IEditor, NumberingListType } from 'roosterjs-editor-types';
import type { CompatibleNumberingListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle strikethrough at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle subscript at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle superscript at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle underline at selection

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set background color of cells.

@@ -1,2 +0,3 @@

import { IEditor, TableOperation } from 'roosterjs-editor-types';
import { TableOperation } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleTableOperation } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, TableFormat } from 'roosterjs-editor-types';
import type { IEditor, TableFormat } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Format table

@@ -1,2 +0,2 @@

import { IEditor, TableFormat } from 'roosterjs-editor-types';
import type { IEditor, TableFormat } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert table into editor at current selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { IEditor, NodePosition, Region } from 'roosterjs-editor-types';
import { VListChain } from 'roosterjs-editor-dom';
import type { IEditor, NodePosition, Region } from 'roosterjs-editor-types';
/**

@@ -4,0 +4,0 @@ * Split selection into regions, and perform a block-wise formatting action for each region.

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { IEditor } from 'roosterjs-editor-types';
import { VListChain } from 'roosterjs-editor-dom';
import type { IEditor } from 'roosterjs-editor-types';
import type { VListChain } from 'roosterjs-editor-dom';
/**

@@ -4,0 +4,0 @@ * Commit changes of all list changes when experiment features are allowed

@@ -1,2 +0,2 @@

import { DocumentCommand, IEditor } from 'roosterjs-editor-types';
import type { DocumentCommand, IEditor } from 'roosterjs-editor-types';
import type { CompatibleDocumentCommand } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, NodePosition } from 'roosterjs-editor-types';
import type { IEditor, NodePosition } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { BulletListType, IEditor, ListType, NumberingListType } from 'roosterjs-editor-types';
import type { BulletListType, IEditor, ListType, NumberingListType } from 'roosterjs-editor-types';
import type { CompatibleBulletListType, CompatibleListType, CompatibleNumberingListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,3 @@

import { Capitalization, IEditor } from 'roosterjs-editor-types';
import { Capitalization } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleCapitalization } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,3 @@

import { FontSizeChange, IEditor } from 'roosterjs-editor-types';
import { FontSizeChange } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleFontSizeChange } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @deprecated Use clearFormat instead and pass the ClearFormatMode.Block as parameter

@@ -1,2 +0,3 @@

import { ClearFormatMode, IEditor } from 'roosterjs-editor-types';
import { ClearFormatMode } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleClearFormatMode } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert a hyperlink at cursor.

@@ -1,2 +0,2 @@

import { ElementBasedFormatState, FormatState, IEditor, PluginEvent } from 'roosterjs-editor-types';
import type { ElementBasedFormatState, FormatState, IEditor, PluginEvent } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Get element based Format State at cursor

@@ -1,2 +0,3 @@

import { ContentPosition, Entity, IEditor, NodePosition } from 'roosterjs-editor-types';
import type { Entity, IEditor, NodePosition } from 'roosterjs-editor-types';
import { ContentPosition } from 'roosterjs-editor-types';
import type { CompatibleContentPosition } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -92,6 +92,5 @@ "use strict";

}
else if (isReadonly &&
editor.isFeatureEnabled("InlineEntityReadOnlyDelimiters" /* InlineEntityReadOnlyDelimiters */)) {
else if (isReadonly) {
(0, roosterjs_editor_dom_1.addDelimiters)(entity.wrapper);
if (entity.wrapper.nextElementSibling) {
if (entity.wrapper.nextElementSibling && editor.hasFocus()) {
editor.select(new roosterjs_editor_dom_1.Position(entity.wrapper.nextElementSibling, -3 /* After */));

@@ -98,0 +97,0 @@ }

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert an image to editor at current selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Remove link at selection. If no links at selection, do nothing.

@@ -1,2 +0,2 @@

import { IEditor, IPositionContentSearcher } from 'roosterjs-editor-types';
import type { IEditor, IPositionContentSearcher } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Replace text before current selection with a node, current selection will be kept if possible

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Rotate an element visually

@@ -1,2 +0,3 @@

import { Alignment, IEditor } from 'roosterjs-editor-types';
import { Alignment } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleAlignment } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set background color at current selection

@@ -1,2 +0,3 @@

import { Direction, IEditor } from 'roosterjs-editor-types';
import { Direction } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleDirection } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set font name at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set font size at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set heading level at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set image alt text for all selected images at selection. If no images is contained

@@ -1,2 +0,3 @@

import { IEditor, Indentation } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import { Indentation } from 'roosterjs-editor-types';
import type { CompatibleIndentation } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Resets Ordered List Numbering back to the value of the parameter startNumber

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set text color at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle blockquote at selection, if selection already contains any blockquote elements,

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle bold at selection

@@ -1,2 +0,2 @@

import { BulletListType, IEditor } from 'roosterjs-editor-types';
import type { BulletListType, IEditor } from 'roosterjs-editor-types';
import type { CompatibleBulletListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle code block at selection, if selection already contains any code blocked elements,

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle italic at selection

@@ -1,2 +0,2 @@

import { IEditor, NumberingListType } from 'roosterjs-editor-types';
import type { IEditor, NumberingListType } from 'roosterjs-editor-types';
import type { CompatibleNumberingListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle strikethrough at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle subscript at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle superscript at selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Toggle underline at selection

@@ -1,2 +0,2 @@

import { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
import type { IEditor, ModeIndependentColor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Set background color of cells.

@@ -1,2 +0,3 @@

import { IEditor, TableOperation } from 'roosterjs-editor-types';
import { TableOperation } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
import type { CompatibleTableOperation } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, TableFormat } from 'roosterjs-editor-types';
import type { IEditor, TableFormat } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Format table

@@ -1,2 +0,2 @@

import { IEditor, TableFormat } from 'roosterjs-editor-types';
import type { IEditor, TableFormat } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * Insert table into editor at current selection

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { IEditor, NodePosition, Region } from 'roosterjs-editor-types';
import { VListChain } from 'roosterjs-editor-dom';
import type { IEditor, NodePosition, Region } from 'roosterjs-editor-types';
/**

@@ -4,0 +4,0 @@ * Split selection into regions, and perform a block-wise formatting action for each region.

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { IEditor } from 'roosterjs-editor-types';
import type { IEditor } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,3 +0,3 @@

import { IEditor } from 'roosterjs-editor-types';
import { VListChain } from 'roosterjs-editor-dom';
import type { IEditor } from 'roosterjs-editor-types';
import type { VListChain } from 'roosterjs-editor-dom';
/**

@@ -4,0 +4,0 @@ * Commit changes of all list changes when experiment features are allowed

@@ -1,2 +0,2 @@

import { DocumentCommand, IEditor } from 'roosterjs-editor-types';
import type { DocumentCommand, IEditor } from 'roosterjs-editor-types';
import type { CompatibleDocumentCommand } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { IEditor, NodePosition } from 'roosterjs-editor-types';
import type { IEditor, NodePosition } from 'roosterjs-editor-types';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -1,2 +0,2 @@

import { BulletListType, IEditor, ListType, NumberingListType } from 'roosterjs-editor-types';
import type { BulletListType, IEditor, ListType, NumberingListType } from 'roosterjs-editor-types';
import type { CompatibleBulletListType, CompatibleListType, CompatibleNumberingListType } from 'roosterjs-editor-types/lib/compatibleTypes';

@@ -3,0 +3,0 @@ /**

@@ -6,6 +6,6 @@ {

"tslib": "^2.3.1",
"roosterjs-editor-types": "^8.56.0",
"roosterjs-editor-dom": "^8.56.0"
"roosterjs-editor-types": "^8.57.0",
"roosterjs-editor-dom": "^8.57.0"
},
"version": "8.56.0",
"version": "8.57.0",
"main": "./lib/index.js",

@@ -12,0 +12,0 @@ "typings": "./lib/index.d.ts",

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

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

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

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

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc