All I know is that it uses a IFRAME tag as it’s presentation layer, how does it store the data, how does it switch between WYSIWYG mode and source mode?
All I know is that it uses a IFRAME tag as it’s presentation layer,
Share
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.
Most in-browser WYSIWYG editors (Google Docs is a notable exception) use the contenteditable attribute to make an element editable.
The data doesn’t need to be stored in any special way, it’s just the HTML content of the editable node.
Switch to source mode by dumping the
innerHTMLof your editable element into atextarea, showing thetextarea, and hiding the editable element.You can find lots of information and tutorials by googling
contenteditable.