How does the toggle button on mootools rte work, please refer to example on http://jsfiddle.net/cheeaun/NHBVa/
How does it go from html coded to the rte.
Thanks in Advance
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.
the answer is in the source code?
https://github.com/cheeaun/mooeditable/blob/master/Source/MooEditable/MooEditable.js#L587-603
the textarea is always there but is normally hidden. the toggle swaps the display status of the textarea or the preview iframe and on preview mode, it exports the value of the textarea as the contents of the iframe, making it render.
it keeps state via
this.mode. not sure what else i can add…