Skip to content

Conversation

@kptdobe
Copy link
Contributor

@kptdobe kptdobe commented Jan 22, 2026

It can be useful for a plugin to request the current selection content.

If readSelection action is received, it reads the prosemirror current selection and sends it back via a sendSelection message. Of course, this operates on the prosemirror dom (and not the "aem" dom).

@aem-code-sync
Copy link

aem-code-sync bot commented Jan 22, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

auniverseaway
auniverseaway previously approved these changes Jan 23, 2026
Copy link
Member

@auniverseaway auniverseaway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool.

Small suggestion (feel free to ignore if you feel strongly): readSelection implies "read it." which doesn't necessarily imply "give me" which I would maybe lean towards getSelection.

@kptdobe kptdobe merged commit 93fd8b0 into main Jan 23, 2026
3 of 5 checks passed
@kptdobe kptdobe deleted the getsel branch January 23, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants