@dxos/react-ui-editor 0.6.10 → 0.6.11-staging.e6894a4
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/dist/lib/browser/index.mjs +2 -12
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/extensions/comments.d.ts +1 -1
- package/dist/types/src/extensions/comments.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/extensions/comments.ts +3 -11
@@ -1666,22 +1666,12 @@ var createComment = (view) => {
|
|
1666
1666
|
to
|
1667
1667
|
});
|
1668
1668
|
if (cursor) {
|
1669
|
-
|
1669
|
+
options.onCreate?.({
|
1670
1670
|
cursor,
|
1671
1671
|
from,
|
1672
1672
|
location: view.coordsAtPos(from)
|
1673
1673
|
});
|
1674
|
-
|
1675
|
-
view.dispatch({
|
1676
|
-
effects: setSelection.of({
|
1677
|
-
current: id
|
1678
|
-
}),
|
1679
|
-
selection: {
|
1680
|
-
anchor: to
|
1681
|
-
}
|
1682
|
-
});
|
1683
|
-
return true;
|
1684
|
-
}
|
1674
|
+
return true;
|
1685
1675
|
}
|
1686
1676
|
return false;
|
1687
1677
|
};
|