@worktile/theia 14.2.25 → 14.2.26

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.
@@ -3762,6 +3762,9 @@ const clearMarks = (editor) => {
3762
3762
  };
3763
3763
 
3764
3764
  const insertElements = (editor, elements) => {
3765
+ if (!editor.selection) {
3766
+ refocus(editor);
3767
+ }
3765
3768
  if (Range.isExpanded(editor.selection)) {
3766
3769
  Editor.deleteFragment(editor);
3767
3770
  }