mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -05:00
Release v2.2.3
This commit is contained in:
parent
1ed32e3db7
commit
69e03f4cf5
11 changed files with 36 additions and 26 deletions
|
@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file, starting fr
|
|||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.2.3] - 2023-10-09
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed a null-deref crash that could occur when removing inline formatting.
|
||||
|
||||
## [2.2.2] - 2023-10-04
|
||||
|
||||
### Fixed
|
||||
|
|
18
dist/squire-raw.js
vendored
18
dist/squire-raw.js
vendored
|
@ -3266,19 +3266,21 @@
|
|||
formatTags.forEach((el) => {
|
||||
replaceWith(el, empty(el));
|
||||
});
|
||||
if (cantFocusEmptyTextNodes && fixer) {
|
||||
fixer = fixer.parentNode;
|
||||
let block = fixer;
|
||||
while (block && isInline(block)) {
|
||||
block = block.parentNode;
|
||||
}
|
||||
if (block) {
|
||||
removeZWS(block, fixer);
|
||||
}
|
||||
}
|
||||
this._getRangeAndRemoveBookmark(range);
|
||||
if (fixer) {
|
||||
range.collapse(false);
|
||||
}
|
||||
mergeInlines(root, range);
|
||||
if (cantFocusEmptyTextNodes && fixer) {
|
||||
fixer = fixer.parentNode;
|
||||
let block = fixer;
|
||||
while (isInline(block)) {
|
||||
block = block.parentNode;
|
||||
}
|
||||
removeZWS(block, fixer);
|
||||
}
|
||||
return range;
|
||||
}
|
||||
// ---
|
||||
|
|
18
dist/squire-raw.mjs
vendored
18
dist/squire-raw.mjs
vendored
|
@ -3263,19 +3263,21 @@ var Squire = class {
|
|||
formatTags.forEach((el) => {
|
||||
replaceWith(el, empty(el));
|
||||
});
|
||||
if (cantFocusEmptyTextNodes && fixer) {
|
||||
fixer = fixer.parentNode;
|
||||
let block = fixer;
|
||||
while (block && isInline(block)) {
|
||||
block = block.parentNode;
|
||||
}
|
||||
if (block) {
|
||||
removeZWS(block, fixer);
|
||||
}
|
||||
}
|
||||
this._getRangeAndRemoveBookmark(range);
|
||||
if (fixer) {
|
||||
range.collapse(false);
|
||||
}
|
||||
mergeInlines(root, range);
|
||||
if (cantFocusEmptyTextNodes && fixer) {
|
||||
fixer = fixer.parentNode;
|
||||
let block = fixer;
|
||||
while (isInline(block)) {
|
||||
block = block.parentNode;
|
||||
}
|
||||
removeZWS(block, fixer);
|
||||
}
|
||||
return range;
|
||||
}
|
||||
// ---
|
||||
|
|
2
dist/squire.js
vendored
2
dist/squire.js
vendored
File diff suppressed because one or more lines are too long
4
dist/squire.js.map
vendored
4
dist/squire.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/squire.mjs
vendored
2
dist/squire.mjs
vendored
File diff suppressed because one or more lines are too long
4
dist/squire.mjs.map
vendored
4
dist/squire.mjs.map
vendored
File diff suppressed because one or more lines are too long
2
dist/types/Editor.d.ts.map
vendored
2
dist/types/Editor.d.ts.map
vendored
File diff suppressed because one or more lines are too long
2
dist/types/node/Whitespace.d.ts
vendored
2
dist/types/node/Whitespace.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
declare const isLineBreak: (br: Element, isLBIfEmptyBlock: boolean) => boolean;
|
||||
declare const removeZWS: (root: Node, keepNode?: Node) => void;
|
||||
declare const removeZWS: (root: Node, keepNode?: Node | null) => void;
|
||||
export { isLineBreak, removeZWS };
|
||||
//# sourceMappingURL=Whitespace.d.ts.map
|
2
dist/types/node/Whitespace.d.ts.map
vendored
2
dist/types/node/Whitespace.d.ts.map
vendored
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Whitespace.d.ts","sourceRoot":"","sources":["../../../source/node/Whitespace.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,WAAW,OAAQ,OAAO,oBAAoB,OAAO,KAAG,OAY7D,CAAC;AAUF,QAAA,MAAM,SAAS,SAAU,IAAI,aAAa,IAAI,KAAG,IA4BhD,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
||||
{"version":3,"file":"Whitespace.d.ts","sourceRoot":"","sources":["../../../source/node/Whitespace.ts"],"names":[],"mappings":"AAcA,QAAA,MAAM,WAAW,OAAQ,OAAO,oBAAoB,OAAO,KAAG,OAY7D,CAAC;AAUF,QAAA,MAAM,SAAS,SAAU,IAAI,aAAa,IAAI,GAAG,IAAI,KAAG,IA4BvD,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "squire-rte",
|
||||
"version": "2.2.2",
|
||||
"version": "2.2.3",
|
||||
"description": "Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation, whilst being supremely lightweight and flexible.",
|
||||
"main": "dist/squire.mjs",
|
||||
"types": "dist/types/Squire.d.ts",
|
||||
|
|
Loading…
Reference in a new issue