How to listen for selection changes in the editor? #1896
Replies: 1 comment 5 replies
-
|
First, you can listen to transaction change from: crepe.on((listener) => {
listener.updated((ctx, doc, prevDoc) => {
const selectionChanged = doc.selection.eq(prevDoc.selection);
if (selectionChanged) {
// selection changed
}
});
});Second, I don't have any duty to reply you on Sunday. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i want self created menu for v7, but i dont know how to listen for selection changes in the editor?
some code for chatGpt:
I think this approach is terrible. I found that people had already raised related issues as early as two years ago.
Additionally, I reached out to you on Discord, but I never got a reply.
Beta Was this translation helpful? Give feedback.
All reactions