prosemirror-commands
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,7 @@ | ||
## 1.3.1 (2022-09-08) | ||
### Bug fixes | ||
Make sure `toggleMark` doesn't add marks to top nodes with non-inline content. | ||
## 1.3.0 (2022-05-30) | ||
@@ -2,0 +8,0 @@ |
@@ -544,3 +544,3 @@ import { liftTarget, replaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform'; | ||
let { $from, $to } = ranges[i]; | ||
let can = $from.depth == 0 ? doc.type.allowsMarkType(type) : false; | ||
let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false; | ||
doc.nodesBetween($from.pos, $to.pos, node => { | ||
@@ -547,0 +547,0 @@ if (can) |
{ | ||
"name": "prosemirror-commands", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Editing commands for ProseMirror", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -488,3 +488,3 @@ import {joinPoint, canJoin, findWrapping, liftTarget, canSplit, | ||
let {$from, $to} = ranges[i] | ||
let can = $from.depth == 0 ? doc.type.allowsMarkType(type) : false | ||
let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false | ||
doc.nodesBetween($from.pos, $to.pos, node => { | ||
@@ -491,0 +491,0 @@ if (can) return false |
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
104484
11
2068