Hey guys, I am encountering some difficulties in developing a plugin as I am a beginner. I am unable to modify the text in the editor using code in the plugin.
I have selected the following text in the editor:
And I want to achieve the following result through a shortcut key:
It is a simple function, but I am unable to implement it. Could you provide me with some guidance? Thank you very much!