There is a button on the toolbar's right hand side that toggles between "no plugin" and "plugin". This specifies what kind of HTML is to be created. With "Plugin" set all the correct HTML is generated. It should be kept in mind that "Plugin" applets will only run with the plugin and if it is not present the page visitor won't see the applet.