plate icon indicating copy to clipboard operation
plate copied to clipboard

Last editor ID is never set

Open okmr-d opened this issue 1 year ago • 0 comments

Description

eventEditorStore.last is never set. https://platejs.org/docs/api/core/store#last

eventEditorActions.last(editor.id) should be added https://github.com/udecode/plate/blob/95a069e0573339588c9637feea1e453802c06738/packages/core/src/shared/plugins/event-editor/createEventEditorPlugin.ts#L24-L26

Reproduction URL

No response

Reproduction steps

1. code

const lastEditorId = useEventEditorSelectors.last()
  1. Focus on Editor

  2. lastEditorId is not set



### Plate version

35.0.0

### Slate React version

0.105.0

### Screenshots

_No response_

### Logs

_No response_

### Browsers

_No response_

<!-- POLAR PLEDGE BADGE START -->
## Funding
* You can sponsor this specific effort via a [Polar.sh](https://polar.sh) pledge below
* We receive the pledge once the issue is completed & verified

<a href="https://polar.sh/udecode/plate/issues/3309">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/udecode/plate/issues/3309/pledge.svg?darkmode=1">
  <img alt="Fund with Polar" src="https://polar.sh/api/github/udecode/plate/issues/3309/pledge.svg">
</picture>
</a>
<!-- POLAR PLEDGE BADGE END -->

okmr-d avatar Jun 25 '24 05:06 okmr-d