HTML and CSS Reference
Listing 3.6. app.js—Enabling designMode and connecting the two editors
Progress check: try it out
At this point, you should be able to type text in the visual editor. You'll notice that if you
switch to the HTML editor, the contents should match. Similarly, if you make changes in
the HTML editor and switch back to the visual editor, your changes should be shown. Try
putting some arbitrary HTML styling markup in the HTML editor and notice the impact it
has in the visual editor.