Custom text selection plugin in Read-only mode. #3193
Unanswered
pinkroseflower
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm really excited to join this community.
I'm currently developing a plugin in the Plate.js editor that selects entire sentences containing the body selected by the user. Currently, the plugin works correctly when the editor is in editing mode, but does not work in read-only mode. Through online searches and ChatGPT, I realized that Plate.js does not allow this in read-only state. Adding text in the editor is done through insertText in @udecode/plate-common. Are there any other solutions that can make my vision come true? Hope your selfless help.
The code for the plugin is as follows:
I'm using this template.
https://github.com/udecode/plate-playground-template
Thanks,
David,
Beta Was this translation helpful? Give feedback.
All reactions