mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 19:16:29 +08:00
refactor(editor): remove selection global types (#9532)
Closes: [BS-2217](https://linear.app/affine-design/issue/BS-2217/remove-global-types-in-selection)
This commit is contained in:
@@ -101,7 +101,7 @@ export class AffineDocRemoteSelectionWidget extends WidgetComponent {
|
||||
|
||||
if (textSelection) {
|
||||
const range = this.std.range.textSelectionToRange(
|
||||
this._selectionManager.create('text', {
|
||||
this._selectionManager.create(TextSelection, {
|
||||
from: {
|
||||
blockId: textSelection.to
|
||||
? textSelection.to.blockId
|
||||
|
||||
Reference in New Issue
Block a user