@contentful/field-editor-rich-text 3.4.20 → 3.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/field-editor-rich-text.cjs.development.js +4 -0
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +4 -0
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.4.21](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.4.20...@contentful/field-editor-rich-text@3.4.21) (2023-05-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
9
|
+
|
|
6
10
|
## [3.4.20](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.4.19...@contentful/field-editor-rich-text@3.4.20) (2023-04-21)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
|
@@ -1783,6 +1783,8 @@ async function selectEntityAndInsert(nodeType, sdk, editor, logAction) {
|
|
|
1783
1783
|
nodeType
|
|
1784
1784
|
});
|
|
1785
1785
|
} else {
|
|
1786
|
+
// Selection prevents incorrect position of inserted ref when RTE doesn't have focus
|
|
1787
|
+
// (i.e. when using hotkeys and slide-in)
|
|
1786
1788
|
select(editor, selection);
|
|
1787
1789
|
insertBlock$1(editor, nodeType, entity);
|
|
1788
1790
|
ensureFollowingParagraph(editor);
|
|
@@ -2178,6 +2180,8 @@ async function selectEntityAndInsert$1(editor, sdk, logAction) {
|
|
|
2178
2180
|
nodeType: Contentful.INLINES.EMBEDDED_ENTRY
|
|
2179
2181
|
});
|
|
2180
2182
|
} else {
|
|
2183
|
+
// Selection prevents incorrect position of inserted ref when RTE doesn't have focus
|
|
2184
|
+
// (i.e. when using hotkeys and slide-in)
|
|
2181
2185
|
select(editor, selection);
|
|
2182
2186
|
insertNodes(editor, createInlineEntryNode$1(entry.sys.id));
|
|
2183
2187
|
logAction('insert', {
|