…otherwise friendlycode just publishes when told to.
Updated publish button to use webmaker-style buttons, and removed old button styling.
It's tiny enough that it won't add a big overhead to the optimized blob, and it makes friendlycode easier to embed as a widget. I had to change our template requirejs plugin to not strip newlines; not sure why we were doing that...
This is a major step towards stylistically decoupling friendlycode from being Thimble-specific; a different page can now include its own header (or none at all) and still have the friendlycode editor, toolbar, and modals in it. This refactoring is incomplete in a few ways, though: * Thimble-specific CSS needs to be moved out of editor.css and into its own separate file. * The publishing modals are still hard-coded to appear next to the publish button's expected location in Thimble, meaning that they assume a header with a height of about 79px. * The 'Loading...' message had to be moved into index.html so it actually appears while resources are loading, not once they're done loading. This is very messy right now and should be fixed in an upcoming commit. * It's likely that this refactoring changes the positioning of some toolbar elements by a pixel or two. I checked the appearance on all browsers and things seem to look fine, though the positioning of the Publish button seems visibly off IE9 and Opera--not sure if this is a regression or if things have always been this way.
…s below rather than above a line