Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

roosterjs-editor-api

Package Overview
Dependencies
Maintainers
2
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 6.3.0 to 6.3.1

13

lib/format/removeLink.js

@@ -11,2 +11,7 @@ "use strict";

execFormatWithUndo_1.default(editor, function () {
var range = editor.getSelectionRange();
var startPoint = range
? roosterjs_editor_dom_1.normalizeEditorPoint(range.startContainer, range.startOffset)
: null;
var endPoint = range ? roosterjs_editor_dom_1.normalizeEditorPoint(range.endContainer, range.endOffset) : null;
for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {

@@ -16,2 +21,10 @@ var node = nodes_1[_i];

}
if (range &&
editor.contains(startPoint.containerNode) &&
editor.contains(endPoint.containerNode)) {
var newRange = editor.getDocument().createRange();
newRange.setStart(startPoint.containerNode, startPoint.offset);
newRange.setEnd(endPoint.containerNode, endPoint.offset);
editor.updateSelection(newRange);
}
});

@@ -18,0 +31,0 @@ }

8

package.json

@@ -5,8 +5,8 @@ {

"dependencies": {
"roosterjs-editor-types": "6.3.0",
"roosterjs-editor-dom": "6.3.0",
"roosterjs-editor-core": "6.3.0"
"roosterjs-editor-types": "6.3.1",
"roosterjs-editor-dom": "6.3.1",
"roosterjs-editor-core": "6.3.1"
},
"main": "./lib/index.js",
"version": "6.3.0",
"version": "6.3.1",
"typings": "./lib/index.d.ts",

@@ -13,0 +13,0 @@ "license": "MIT",

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