﻿//User confirmation when trying to save an empty HTML document
function checkForEmptyHtml(htmlBlobID)
{
    var editedHtml = document.getElementById(htmlBlobID).getHTML();
    if (editedHtml.length == 0) {
        return confirm('Saving an empty HTML area will simply clear any currently saved draft version.\n\n' +
                       'If you wish to just not display any contents then you should cancel this edit and then select the \'Set contents as hidden\' option.\n\n' + 
                       'Do you still wish to continue with this save?');
    }
    return true;
}
