I have figured how to get selected text in Editor of Wpres using:
I need to replace some text work with a link and don’t know how, any help would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to get the text value of currently selected text in the visual editor:
If you want to replace the selected text with a new value, just use this in addition to the above variables:
Or in your case of wanting to use a link: