I am trying to set the value of wymeditor textarea,
in API documentation, to set or get the value, the code below is given;
wym.html("<p>Hello, World.</p>");
but this code is not working.
How can I set the value of wymeditor textarea?
thanks.
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.
That code will actually work, assuming that the value of
wymis the appropriate WYMeditor instance. For example, something like this will work:You can also just put the HTML you’d like to start with as the contents of your text area before you initialize wymeditor.