@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
|
@@ -1776,6 +1776,8 @@ async function selectEntityAndInsert(nodeType, sdk, editor, logAction) {
|
|
|
1776
1776
|
nodeType
|
|
1777
1777
|
});
|
|
1778
1778
|
} else {
|
|
1779
|
+
// Selection prevents incorrect position of inserted ref when RTE doesn't have focus
|
|
1780
|
+
// (i.e. when using hotkeys and slide-in)
|
|
1779
1781
|
select(editor, selection);
|
|
1780
1782
|
insertBlock$1(editor, nodeType, entity);
|
|
1781
1783
|
ensureFollowingParagraph(editor);
|
|
@@ -2171,6 +2173,8 @@ async function selectEntityAndInsert$1(editor, sdk, logAction) {
|
|
|
2171
2173
|
nodeType: INLINES.EMBEDDED_ENTRY
|
|
2172
2174
|
});
|
|
2173
2175
|
} else {
|
|
2176
|
+
// Selection prevents incorrect position of inserted ref when RTE doesn't have focus
|
|
2177
|
+
// (i.e. when using hotkeys and slide-in)
|
|
2174
2178
|
select(editor, selection);
|
|
2175
2179
|
insertNodes(editor, createInlineEntryNode$1(entry.sys.id));
|
|
2176
2180
|
logAction('insert', {
|