roosterjs-editor-api
Advanced tools
Comparing version 8.29.4 to 8.29.5
@@ -32,3 +32,3 @@ var __assign = (this && this.__assign) || function () { | ||
var endingBlock = editor.getBlockElementAtNode(range.endContainer); | ||
multiline = endingBlock ? !endingBlock.equals(startingBlock) : false; | ||
multiline = endingBlock && startingBlock ? !endingBlock.equals(startingBlock) : false; | ||
} | ||
@@ -35,0 +35,0 @@ var headerTag = (0, roosterjs_editor_dom_1.getTagOfNode)(editor.getElementAtCursor('H1,H2,H3,H4,H5,H6', null /*startFrom*/, event)); |
@@ -29,3 +29,3 @@ var __assign = (this && this.__assign) || function () { | ||
var endingBlock = editor.getBlockElementAtNode(range.endContainer); | ||
multiline = endingBlock ? !endingBlock.equals(startingBlock) : false; | ||
multiline = endingBlock && startingBlock ? !endingBlock.equals(startingBlock) : false; | ||
} | ||
@@ -32,0 +32,0 @@ var headerTag = getTagOfNode(editor.getElementAtCursor('H1,H2,H3,H4,H5,H6', null /*startFrom*/, event)); |
@@ -32,3 +32,3 @@ "use strict"; | ||
var endingBlock = editor.getBlockElementAtNode(range.endContainer); | ||
multiline = endingBlock ? !endingBlock.equals(startingBlock) : false; | ||
multiline = endingBlock && startingBlock ? !endingBlock.equals(startingBlock) : false; | ||
} | ||
@@ -35,0 +35,0 @@ var headerTag = (0, roosterjs_editor_dom_1.getTagOfNode)(editor.getElementAtCursor('H1,H2,H3,H4,H5,H6', null /*startFrom*/, event)); |
@@ -5,7 +5,7 @@ { | ||
"dependencies": { | ||
"roosterjs-editor-types": "^8.29.4", | ||
"roosterjs-editor-dom": "^8.29.4" | ||
"roosterjs-editor-types": "^8.29.5", | ||
"roosterjs-editor-dom": "^8.29.5" | ||
}, | ||
"main": "./lib/index.js", | ||
"version": "8.29.4", | ||
"version": "8.29.5", | ||
"typings": "./lib/index.d.ts", | ||
@@ -12,0 +12,0 @@ "license": "MIT", |
@@ -115,6 +115,2 @@ [![Build Status](https://github.com/microsoft/roosterjs/actions/workflows/build-and-deploy.yml/badge.svg)](https://github.com/microsoft/roosterjs/actions/workflows/build-and-deploy.yml) | ||
or | ||
`npm install roosterjs --save` | ||
You can also install sub packages separately: | ||
@@ -128,10 +124,2 @@ | ||
or | ||
`npm install roosterjs-editor-core --save` | ||
`npm install roosterjs-editor-api --save` | ||
`...` | ||
In order to run the code below, you may also need to install [webpack](https://webpack.js.org/): | ||
@@ -141,6 +129,2 @@ | ||
or | ||
`npm install webpack -g` | ||
## Usage | ||
@@ -238,8 +222,2 @@ | ||
or | ||
```cmd | ||
npm install | ||
``` | ||
2. Build the source code, and start the sample editor: | ||
@@ -246,0 +224,0 @@ |
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
1015480
308