Fix issue #30 - when in source code view, saving blanks out canvas (required a context check between using .val() and .html() to get content)